-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Merged
Jason918
merged 14 commits into
apache:master
from
zjxxzjwang:master-restrictClusterName
Jan 2, 2025
Merged
[feat][broker] Prevent auto-creation of topics using legacy cluster-based naming scheme #23620
Jason918
merged 14 commits into
apache:master
from
zjxxzjwang:master-restrictClusterName
Jan 2, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ster name in its name
…ster name in its name
lhotari
reviewed
Nov 21, 2024
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java
Outdated
Show resolved
Hide resolved
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
Related to #23594 |
4 tasks
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
Jason918
requested changes
Dec 3, 2024
...roker/src/test/java/org/apache/pulsar/broker/service/BrokerServiceAutoTopicCreationTest.java
Show resolved
Hide resolved
Jason918
requested changes
Dec 4, 2024
...roker/src/test/java/org/apache/pulsar/broker/service/BrokerServiceAutoTopicCreationTest.java
Outdated
Show resolved
Hide resolved
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java
Outdated
Show resolved
Hide resolved
Jason918
reviewed
Dec 4, 2024
Jason918
approved these changes
Dec 4, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
3 tasks
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #23620 +/- ##
============================================
+ Coverage 73.57% 74.16% +0.59%
+ Complexity 32624 32153 -471
============================================
Files 1877 1853 -24
Lines 139502 143385 +3883
Branches 15299 16279 +980
============================================
+ Hits 102638 106343 +3705
+ Misses 28908 28687 -221
- Partials 7956 8355 +399
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: