When the loadmanager leader is not available, fall through regular least loaded selection#3688
Merged
merlimat merged 2 commits intoapache:masterfrom Mar 1, 2019
Merged
When the loadmanager leader is not available, fall through regular least loaded selection#3688merlimat merged 2 commits intoapache:masterfrom
merlimat merged 2 commits intoapache:masterfrom
Conversation
…ast loaded selection
rdhabalia
approved these changes
Feb 26, 2019
jiazhai
approved these changes
Feb 26, 2019
Contributor
Author
|
run java8 tests |
Contributor
Author
|
run java8 tests |
Member
|
run java8 tests |
2 similar comments
Contributor
Author
|
run java8 tests |
Contributor
Author
|
run java8 tests |
merlimat
added a commit
that referenced
this pull request
Mar 29, 2019
…ast loaded selection (#3688) * When the loadmanager leader is not available, fall through regular least loaded selection * Handle exceptions coming from mock zk in tests
Contributor
Author
|
Merged in 2.3.1 at |
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
Under certain conditions the topic failover can take ~30seconds even when doing a graceful broker shutdown.
This happens because of a race condition when the load-manager leader is being shut down. Since the ephemeral z-node for the leader election is not being explicitely deleted, in some cases it might hang around until the old zk-session gets expired.
The error that gets printed in brokers is:
The reason for the error is:
The solution here is twofold: