-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker] PIP-428: Fix corrupted topic policies issues with sequential topic policy updates #24427
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] PIP-428: Fix corrupted topic policies issues with sequential topic policy updates #24427
Conversation
0312bf6 to
d4ad9ee
Compare
...ker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
Outdated
Show resolved
Hide resolved
...ker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
Outdated
Show resolved
Hide resolved
...ker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
Outdated
Show resolved
Hide resolved
...ker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
…dateWhenTopicPolicyDoesntExist parameter
|
Thanks for the very helpful review, @BewareMyPower. PTAL |
BewareMyPower
left a comment
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 leave a minor comment
...ker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
Show resolved
Hide resolved
...ker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
Show resolved
Hide resolved
...ker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
Outdated
Show resolved
Hide resolved
…nedTopic - it was relying on previously invalid behavior
|
dev mailing list thread to cherry-pick to branch-4.0: https://lists.apache.org/thread/ljnhcm4pgl933kc75ftgz9yzmy03rdqg |
…ntial topic policy updates (apache#24427) (cherry picked from commit e5e7981) (cherry picked from commit f9c3845)
…ntial topic policy updates (apache#24427) (cherry picked from commit e5e7981)
…ntial topic policy updates (apache#24427) (cherry picked from commit e5e7981) (cherry picked from commit f9c3845)
…ntial topic policy updates (apache#24427) (cherry picked from commit e5e7981)
|
@lhotari This PR fixes Do you consider fixing this on the branch-3.0? |
@nodece please propose on the mailing list |
|
@lhotari, It seems that fixing the |
|
I submitted #24758 to the branch-3.0. |
…ntial topic policy updates (apache#24427)
…ntial topic policy updates (apache#24427)
Fixes #24393
Fixes #21303
Motivation
There's a long time issue where topic policies get corrupted as a result of sequential or concurrent topic policy updates.
This PR contains the implementation of
"PIP-428: Change TopicPoliciesService interface to fix consistency issues". Please refer to the PIP document at https://github.com/apache/pulsar/blob/master/pip/pip-428.md for the broader context.
Modifications
Documentation
docdoc-requireddoc-not-neededdoc-complete