-
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
[improve][admin] Opt-out of topic-existence check #23709
Conversation
@omarkj Please add the following content to your PR description and select a checkbox:
|
|
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.
Thanks for submitting this PR. I support this change (context).
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
5b0bd1a
to
1deb48c
Compare
… would like to be able to set permissions to topics that have not yet been created, for instance if a topic is going to be created lazily at a later time.
1deb48c
to
2ff2a3c
Compare
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
Usually we require PIPs for changes for new configuration options. However in this case, this is addressing a breaking change that was introduced by PR #22547. That's why I think there's no need for a PIP. It would be great if PR #22547 could be documented afterwards by @Technoboy- since that PR was a breaking change and it would have required a PIP according to our criteria. |
pls resolve the ci failures |
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #23709 +/- ##
============================================
+ Coverage 73.57% 74.37% +0.80%
- Complexity 32624 35081 +2457
============================================
Files 1877 1945 +68
Lines 139502 147480 +7978
Branches 15299 16277 +978
============================================
+ Hits 102638 109691 +7053
- Misses 28908 29311 +403
- Partials 7956 8478 +522
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Co-authored-by: Ómar Yasin <[email protected]> Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit f571aa1)
Co-authored-by: Ómar Yasin <[email protected]> Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit f571aa1)
Co-authored-by: Ómar Yasin <[email protected]> Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit f571aa1)
Co-authored-by: Ómar Yasin <[email protected]> Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit f571aa1) (cherry picked from commit ef57c2a)
Co-authored-by: Ómar Yasin <[email protected]> Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit f571aa1) (cherry picked from commit ef57c2a)
Co-authored-by: Ómar Yasin <[email protected]> Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit f571aa1) (cherry picked from commit ef57c2a)
Co-authored-by: Ómar Yasin <[email protected]> Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit f571aa1) (cherry picked from commit ef57c2a)
Co-authored-by: Ómar Yasin <[email protected]> Co-authored-by: Lari Hotari <[email protected]>
In some cases users would like to be able to set permissions to topics that have not yet been created, for instance if a topic is going to be created lazily at a later time.
This change introduces a new configuration property for the broker to allow changing to that behaviour.