-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker]Global topic policies do not affect after unloading topic and persistence global topic policies never affect #24279
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]Global topic policies do not affect after unloading topic and persistence global topic policies never affect #24279
Conversation
611a8b5 to
3baff4b
Compare
|
/pulsarbot rerun-failure-checks |
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Show resolved
Hide resolved
|
The topic has a method |
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
Show resolved
Hide resolved
|
There are some merge conflicts in maintenance branches due to lack of #24118 / #24154 changes in maintenance branches (mailing list thread https://lists.apache.org/thread/vdtwlr87kyvn1s7rqozxglz381d8mhp0). @poorbarcode Please handle cherry-picking and testing the changes in maintenance branches since things could break while cherry-picking. The behavior could be different since #24118 / #24154 changes are missing. /cc @nodece |
|
@poorbarcode and @gaoran10 , If we are interested in making topic policy more stable, it would be worth addressing #21303. The state isn't reliable at the moment when mutations happen. That could lead into many other problems. |
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit c0e5ce5)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit e7b7385)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit c0e5ce5)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit c0e5ce5)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit c0e5ce5)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit c0e5ce5)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit c0e5ce5)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit c0e5ce5)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit c0e5ce5)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit e7b7385)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) (cherry picked from commit c0e5ce5)
…c and persistence global topic policies never affect (apache#24279) (cherry picked from commit 46c2b74) Signed-off-by: Zixuan Liu <nodeces@gmail.com>
|
@poorbarcode #24279 is causing CI failures on both the branch-3.0 and branch-3.3 branches. Could you check this? Please see https://lists.apache.org/thread/005qvhjvr5kpcf9qcgbjw82c51of28jy |
…c and persistence global topic policies never affect (apache#24279)
…c and persistence global topic policies never affect (apache#24279)
Motivation
Issue 1: Global policies do not affect after unloading the topic
1020Root cause: when calling
TopicPoliciesService.getPolicies(GetType.DEFAULT), it returns non-global policies. However, the correct behavior should be a combined value of non-global policies and global policies.Issue 2: Persistence, global policies never affect
200Root cause: the values of global policies never been used when building the managed ledger config.
Modifications
TopicPoliciesService.GetType.DEFAULTis meaningless, remove it.Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x