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

[feat][broker] Prevent auto-creation of topics using legacy cluster-based naming scheme #23620

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

Conversation

zjxxzjwang
Copy link

@zjxxzjwang zjxxzjwang commented Nov 21, 2024

Motivation

Topic name rule

  • old version: {tenant}/{cluster}/{namespace}/{topic}

  • new version: {tenant}/{namespace}/{topic}

If the name of an automatically created topic contains a "/", the topic will be resolved into a four-segment format (containing a layer of cluster directories). As a result, the automatically created topic does not conform to the latest topic naming rules

Modifications

No allowto automatically create topic names that contain slashes

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 21, 2024
@FieldContext(category = CATEGORY_SERVER, dynamic = true,
doc = "Topic name contains cluster, not allow be created automatically."
)
private boolean enableCreateLegacyTopic = false;
Copy link
Member

Choose a reason for hiding this comment

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

The config name enableCreateLegacyTopic is not optimal. Since this is related to allowAutoTopicCreation, it's better to share that prefix, for example allowAutoTopicCreationWithLegacyNamingScheme would be a more accurate config name. It should also be specified in the documentation that this config is only used when allowAutoTopicCreation=true.

Copy link
Author

Choose a reason for hiding this comment

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

ok, I will modify it

Copy link
Member

Choose a reason for hiding this comment

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

Looking forward to that.

@lhotari lhotari changed the title No allowto automatically create topic names that contain slashes [feat][broker] Do not automatically create topics using legacy naming scheme that contains the cluster Nov 21, 2024
@lhotari
Copy link
Member

lhotari commented Nov 21, 2024

Related to #23594

@lhotari lhotari changed the title [feat][broker] Do not automatically create topics using legacy naming scheme that contains the cluster [feat][broker] Prevent auto-creation of topics using legacy cluster-based naming scheme Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants