Repository navigation
[fix][broker] Return getOwnerAsync without waiting on source broker upon Assigning and Releasing and handle role change during role init - #22112
Merged
Conversation
…pon Assigning and Releasing
heesung-sohn
force-pushed
the
update-getOwnerAsync
branch
from
February 24, 2024 17:52
ad14014 to
94c5af1
Compare
heesung-sohn
force-pushed
the
update-getOwnerAsync
branch
from
February 24, 2024 17:57
94c5af1 to
cabc1b7
Compare
heesung-sohn
force-pushed
the
update-getOwnerAsync
branch
from
February 26, 2024 21:45
1fd1922 to
c477ee6
Compare
Technoboy-
approved these changes
Feb 27, 2024
Demogorgon314
approved these changes
Feb 28, 2024
heesung-sohn
added a commit
to heesung-sohn/pulsar
that referenced
this pull request
Feb 29, 2024
…pon Assigning and Releasing and handle role change during role init (apache#22112) (cherry picked from commit 56eb758)
heesung-sohn
added a commit
to heesung-sohn/pulsar
that referenced
this pull request
Feb 29, 2024
…pon Assigning and Releasing and handle role change during role init (apache#22112) (cherry picked from commit 56eb758)
mukesh-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Mar 1, 2024
…rce broker upon Assigning and Releasing and handle role change during role init (apache#22112) (apache#22156) (cherry picked from commit b3b1bfb) (cherry picked from commit 58a45aa)
mukesh-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Mar 6, 2024
…rce broker upon Assigning and Releasing and handle role change during role init (apache#22112) (apache#22156) (cherry picked from commit b3b1bfb) (cherry picked from commit 58a45aa)
hanmz
pushed a commit
to hanmz/pulsar
that referenced
this pull request
Feb 12, 2025
…pon Assigning and Releasing and handle role change during role init (apache#22112)
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.
Motivation
Upon Assigning and Releasing, if this broker is not the dst broker, return the dst broker as the owner(or empty). Clients need to connect(redirect) to the dst broker anyway and wait for the dst broker to receive
Owned. This is also required to return getOwnerAsync on the src broker immediately during unloading. Otherwise, topic creation(getOwnerAsync) could block unloading bundles, if the topic creation(getOwnerAsync) happens during unloading on the src broker.Found a case that the broker role might change in the middle while running playLeader or playFollower. In this case, we need to break the init loop and restart playLeader or playFollower according to the current role.
Modifications
Verifying this change
This change added tests.
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-completeMatching PR in forked repository
PR in forked repository: heesung-sohn#63