-
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
[fix] [broker] fix replicated namespaces filter in filterAndUnloadMatchedNamespaceAsync #23100
Conversation
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/ClustersBase.java
Outdated
Show resolved
Hide resolved
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. The concurrency limiting solution will be needed to prevent issues for clusters with a lot of tenants and namespaces.
A test case would be needed. optimally a test that reproduces the original issue so that we can see that the changes fix it. |
thanks for the contribution @iosdev747 , great work! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23100 +/- ##
============================================
- Coverage 73.57% 73.45% -0.13%
- Complexity 32624 33540 +916
============================================
Files 1877 1919 +42
Lines 139502 144107 +4605
Branches 15299 15747 +448
============================================
+ Hits 102638 105851 +3213
- Misses 28908 30152 +1244
- Partials 7956 8104 +148
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…chedNamespaceAsync (#23100) Co-authored-by: Lari Hotari <[email protected]>
…chedNamespaceAsync (#23100) Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit 5aa5e7d)
…chedNamespaceAsync (apache#23100) Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit 6c01bb0)
…chedNamespaceAsync (apache#23100) Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit 6c01bb0)
Main Issue: #23092
Motivation
Problem is namespace unload operation happens on all the namespaces that matches the policy regex. Check should be done only on namespaces in current cluster.
Modifications
Fix namespace filter so only namespaces in current cluster should be used for unload operation.
Verifying this change
This change added tests and can be verified as follows:
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: iosdev747#2