[fix][broker] PIP-428: Fix corrupted topic policies issues with sequential topic policy updates - #24427
Merged
Merged
Conversation
lhotari
requested review from
BewareMyPower,
codelipenghui,
dao-jun,
liangyepianzhou,
merlimat,
nodece and
poorbarcode
June 18, 2025 20:12
3 tasks
4 tasks
lhotari
force-pushed
the
lh-fix-topic-policy-mutations
branch
from
August 12, 2025 06:38
0312bf6 to
d4ad9ee
Compare
Closed
15 tasks
…dateWhenTopicPolicyDoesntExist parameter
Member
Author
|
Thanks for the very helpful review, @BewareMyPower. PTAL |
BewareMyPower
approved these changes
Aug 25, 2025
BewareMyPower
left a comment
Contributor
There was a problem hiding this comment.
LGTM, just leave a minor comment
Technoboy-
reviewed
Aug 25, 2025
Technoboy-
approved these changes
Aug 25, 2025
…nedTopic - it was relying on previously invalid behavior
Member
Author
|
dev mailing list thread to cherry-pick to branch-4.0: https://lists.apache.org/thread/ljnhcm4pgl933kc75ftgz9yzmy03rdqg |
3 tasks
manas-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Aug 28, 2025
…ntial topic policy updates (apache#24427) (cherry picked from commit e5e7981) (cherry picked from commit f9c3845)
Technoboy-
pushed a commit
to Technoboy-/pulsar
that referenced
this pull request
Sep 10, 2025
…ntial topic policy updates (apache#24427) (cherry picked from commit e5e7981)
srinath-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Sep 12, 2025
…ntial topic policy updates (apache#24427) (cherry picked from commit e5e7981) (cherry picked from commit f9c3845)
nborisov
pushed a commit
to nborisov/pulsar
that referenced
this pull request
Sep 12, 2025
…ntial topic policy updates (apache#24427) (cherry picked from commit e5e7981)
Member
|
@lhotari This PR fixes Do you consider fixing this on the branch-3.0? |
Member
Author
@nodece please propose on the mailing list |
Member
|
@lhotari, It seems that fixing the |
Member
|
I submitted #24758 to the branch-3.0. |
KannarFr
pushed a commit
to CleverCloud/pulsar
that referenced
this pull request
Sep 22, 2025
…ntial topic policy updates (apache#24427)
walkinggo
pushed a commit
to walkinggo/pulsar
that referenced
this pull request
Oct 8, 2025
…ntial topic policy updates (apache#24427)
Demogorgon314
added a commit
to Demogorgon314/kop
that referenced
this pull request
Apr 15, 2026
### Motivation apache/pulsar#24623: Updated: ``` public static EntryImpl create(Position position, ByteBuf data) ``` to ``` public static EntryImpl create(Position position, ByteBuf data, int expectedReadCount) ``` apache/pulsar#24427: Updated: ``` CompletableFuture<Void> updateTopicPoliciesAsync(TopicName topicName, TopicPolicies policies); ``` to ``` CompletableFuture<Void> updateTopicPoliciesAsync(TopicName topicName, boolean isGlobalPolicy, boolean skipUpdateWhenTopicPolicyDoesntExist, Consumer<TopicPolicies> policyUpdater); ``` ### Modifications Fix build issue caused by upstream interface changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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