[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. |
|
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 |
|
/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.
|
dao-jun
left a comment
There was a problem hiding this comment.
LGTM, just a few minor comments.
|
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 . |
…l/ClustersBase.java Co-authored-by: Zixuan Liu <nodeces@gmail.com>
|
/pulsarbot rerun-failure-checks |
|
merging... |
…icy set` call (apache#23120) Co-authored-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit 8da3bf8) (cherry picked from commit d7af82e)
…icy set` call (apache#23120) Co-authored-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit 8da3bf8) (cherry picked from commit d7af82e)
…icy set` call (apache#23120) Co-authored-by: Zixuan Liu <nodeces@gmail.com>
Implementation PR for the PIP 369 "Flag based selective unload on changing ns-isolation-policy" #23116
Modifications
Added an
unload-scopeflag in thens-isolation-policy setcall 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-scopeis optional. Default value isall_matchingwhich 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:
changedi.e. only the newly added or now-removed namespace regex would be used to unload the namespacesall_matchingwill 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
docdoc-requireddoc-not-neededdoc-completePR in forked repo - grssam#1