-
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]Ensure namespace deletion doesn't fail #22627
[improve][broker]Ensure namespace deletion doesn't fail #22627
Conversation
This script reproduces MANY problems with namespace deletions, just run it in a loop on a Pulsar cluster with a few brokers (like 6) and more than one ZK server (I am using 3 nodes) reproduce.sh
Execute it in a loop
|
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/resources/BaseResources.java
Outdated
Show resolved
Hide resolved
…sources/BaseResources.java Co-authored-by: Andrey Yegorov <8622884+dlg99@users.noreply.github.com>
@lhotari I think that it is worth to port this fix to all the active branches, maybe up to 3.0. Wdyt? |
@eolivelli makes sense. Btw. there's a rabbit hole in namespace deletion. Currently concurrency limits are missing and a namespace deletion will attempt to concurrency delete all possible topics in the namespace. This is something that would have to be addressed to improve the reliability of namespace deletion. More details in #22541 comments such as #22541 (comment) and #22541 (comment) . |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22627 +/- ##
=============================================
- Coverage 73.57% 32.47% -41.10%
+ Complexity 32624 87 -32537
=============================================
Files 1877 1745 -132
Lines 139502 133886 -5616
Branches 15299 14673 -626
=============================================
- Hits 102638 43482 -59156
- Misses 28908 84033 +55125
+ Partials 7956 6371 -1585
Flags with carried forward coverage won't be shown. Click here to find out more.
|
(cherry picked from commit 936afec)
(cherry picked from commit 936afec)
(cherry picked from commit 936afec)
Motivation
Deleting a namespace sometimes fails and leaves znodes around, especially the "bundle owner" nodes
/namespace/NAMESPACE/xxxxxx
Modifications
With this patch
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
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: eolivelli#27