-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feat][broker] Prevent auto-creation of topics using legacy cluster-based naming scheme #23620
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
Conversation
…ster name in its name
…ster name in its name
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java
Outdated
Show resolved
Hide resolved
|
Related to #23594 |
...roker/src/test/java/org/apache/pulsar/broker/service/BrokerServiceAutoTopicCreationTest.java
Show resolved
Hide resolved
...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
left a comment
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
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.
|
…ased naming scheme (apache#23620) Co-authored-by: zjxxzjwang <zjxxzjwang@tencent.com>
|
This PR introduced a new config without any PIP. Currently it's not cherry-picked into any existing branch. But we should consider adding a PIP for it. |
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
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: