Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show default config for topic configurations #1580

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jvorcak
Copy link
Collaborator

@jvorcak jvorcak commented Jan 8, 2025

  • We needed to remove altering data structures in the backendAPI (moved to ConfigList where it was needed)
  • We added an information about default value to the topic config form

Screenshot 2025-01-08 at 14 52 27

@@ -127,6 +127,8 @@ const ConfigEditorForm: FC<{

const valueType = watch('valueType');

const defaultConfigSynonym = editedEntry.synonyms?.find((x) => x.source === 'DEFAULT_CONFIG');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not always correct. A topic config may be inherited from:

  • Default Config (defined in Redpanda / Apache Kafka if nothing is set)
  • A default for all topics is set at the broker/cluster level (STATIC_BROKER_CONFIG / DYNAMIC_DEFAULT_BROKER_CONFIG / DYNAMIC_BROKER_CONFIG), basically to override the default config

or it is set at the Topic level (DYNAMIC_TOPIC_CONFIG) which is the custom/override case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weeco in that case FE doesn't have this information. On this place we show this information only for default tab, so we don't care about a topic level intentionaly. However, if not set at a topic level, it can be set at multiple levels above, is there a hierarchy for this so that I can determine the default from synonyms array?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes there's a hierarchy, it should be this order (top to bottom):

  • DYNAMIC_TOPIC_CONFIG
  • DYNAMIC_BROKER_CONFIG
  • DYNAMIC_DEFAULT_BROKER_CONFIG
  • STATIC_BROKER_CONFIG
  • DEFAULT_CONFIG

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-01-09 at 15 47 37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants