-
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] PIP-369 Introduce unload
flag in ns-isolation-policy set
call
#23120
Conversation
@grssam Please add the following content to your PR description and select a checkbox:
|
unload
flag in ns-isolation-policy set
callunload
flag in ns-isolation-policy set
call
unload
flag in ns-isolation-policy set
callunload
flag in ns-isolation-policy set
call
Please add labels for 3.0.7 release as I would like this to be present in the LTS version. |
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. Outstanding work @grssam! Thanks for contributing.
Not able to rerun the failed CI pipeline, but all tests passed in my repo - grssam#1 and the new tests that I added are part of "Broker Group 3" only. |
@grssam Pulsar CI, you can trigger a rerun by adding a comment "/pulsarbot rerun-failure-checks" to this PR. It requires that a possible previous workflow run has completed. |
/pulsarbot rerun-failure-checks |
/pulsarbot rerun-failure-checks |
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/ClustersBase.java
Outdated
Show resolved
Hide resolved
/pulsarbot rerun-failure-checks |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23120 +/- ##
============================================
+ Coverage 73.57% 74.55% +0.98%
- Complexity 32624 33656 +1032
============================================
Files 1877 1925 +48
Lines 139502 144951 +5449
Branches 15299 15849 +550
============================================
+ Hits 102638 108068 +5430
+ Misses 28908 28618 -290
- Partials 7956 8265 +309
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, just a few minor comments.
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApi2Test.java
Show resolved
Hide resolved
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApi2Test.java
Show resolved
Hide resolved
PS: while cherry picking to branch-3.0 , it will contain one conflict due to the command line argument parser library change at line https://github.com/apache/pulsar/pull/23120/files#diff-63a2a931cc53a14767f5eb4a53898d7b6fb20f81a87de51cc15bbc139782bd00R77 (and the relevant class imports as well) |
@grssam Yes, that's common that there are conflicts. The committer performing the cherry-picking and backporting will request a separate PR for a backport to branch-3.0 if there's a need. Some of this is explained in the mailing list message https://lists.apache.org/thread/ryyfv8o33yyw9hmo5gnxn71boocn3mzs . |
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/ClustersBase.java
Outdated
Show resolved
Hide resolved
…l/ClustersBase.java Co-authored-by: Zixuan Liu <[email protected]>
/pulsarbot rerun-failure-checks |
merging... |
…icy set` call (#23120) Co-authored-by: Zixuan Liu <[email protected]> (cherry picked from commit 8da3bf8)
…icy set` call (#23120) Co-authored-by: Zixuan Liu <[email protected]> (cherry picked from commit 8da3bf8)
…icy set` call (apache#23120) Co-authored-by: Zixuan Liu <[email protected]> (cherry picked from commit 8da3bf8) (cherry picked from commit d7af82e)
…icy set` call (apache#23120) Co-authored-by: Zixuan Liu <[email protected]> (cherry picked from commit 8da3bf8) (cherry picked from commit d7af82e)
Implementation PR for the PIP 369 "Flag based selective unload on changing ns-isolation-policy" #23116
Modifications
Added an
unload-scope
flag in thens-isolation-policy set
call to control the behavior of which namespaces to unload as part of the set call in a more granular manner.As this PR is targetted for 3.0 LTS as well, keeping the changes backward compatible. i.e. the flag
unload-scope
is optional. Default value isall_matching
which means all namespaces matching the namespaces regex being set in the policy set call.There will be a followup PR which will be adding the following breaking changes:
changed
i.e. only the newly added or now-removed namespace regex would be used to unload the namespacesall_matching
will change to cover all namespaces matching both the previous and the new namespace regex values. The idea is that if immediate placement correction is needed, we should also unload the namespaces which do not belong to the isolation group anymore.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
PR in forked repo - grssam#1