-
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][broker] cleanup the empty subscriptionAuthenticationMap in zk when revoke subscription permission #21696
[improve][broker] cleanup the empty subscriptionAuthenticationMap in zk when revoke subscription permission #21696
Conversation
pulsar-broker/src/test/java/org/apache/pulsar/client/api/AuthenticatedProducerConsumerTest.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/test/java/org/apache/pulsar/client/api/AuthenticatedProducerConsumerTest.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/test/java/org/apache/pulsar/client/api/AuthenticatedProducerConsumerTest.java
Outdated
Show resolved
Hide resolved
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #21696 +/- ##
=============================================
+ Coverage 36.67% 73.37% +36.70%
- Complexity 12248 32756 +20508
=============================================
Files 1716 1893 +177
Lines 131166 140769 +9603
Branches 14330 15507 +1177
=============================================
+ Hits 48104 103292 +55188
+ Misses 76644 29365 -47279
- Partials 6418 8112 +1694
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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
…zk when revoke subscription permission (#21696) Co-authored-by: fanjianye <fanjianye@bigo.sg> Co-authored-by: Jiwe Guo <technoboy@apache.org>
The method |
@horizonzy Fix getTlsFileForClient not exist in branch-3.0. #21744 |
…zk when revoke subscription permission (#21696) Co-authored-by: fanjianye <fanjianye@bigo.sg> Co-authored-by: Jiwe Guo <technoboy@apache.org>
…zk when revoke subscription permission (apache#21696) Co-authored-by: fanjianye <fanjianye@bigo.sg> Co-authored-by: Jiwe Guo <technoboy@apache.org> (cherry picked from commit b7d3a9c)
…zk when revoke subscription permission (apache#21696) Co-authored-by: fanjianye <fanjianye@bigo.sg> Co-authored-by: Jiwe Guo <technoboy@apache.org> (cherry picked from commit b7d3a9c)
Motivation
This is a similar improve as #16815 . After we revoke subscription permission, we would see zk still remain many empty record.
Modifications
If isEmpty, remove the record in zk.
Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: