forked from apache/kafka
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LI-HOTFIX] [Delayed Election PR - Part 1] When a corrupted broker jo…
…ins cluster, it should register with ZK (#429) * [LI-HOTFIX] When a corrupted broker joins cluster, it should register with ZK. TICKET = LIKAFKA-49941 LI_DESCRIPTION = [Delayed Election PR - Part 1] When a corrupted broker joins a Kafka cluster, it needs special treatment before it can be elected leader for the topics on the broker. If "delayed election" feature is enabled, we want to wait for a period of time to elect the leader for partitions on this broker, and make the decision based on whichever replica has the highest broker epoch and offset. To achieve this, the first step is for the controller to know about this corrupted broker. This is achieved in this PR by registering under /brokers/corrupted/<id>. The controller will then get to know about this broker, and as a first step, remove this broker from the ISR of all partitions that are on it. This is done to make sure that a preferred leader election does not accidentally make this broker the leader while the delayed election is taking place. This PR will be followed up with a PR where the controller actually prevents this leader from becoming the leader for all OfflineReplicas on it immediately, and initiate a delayed election. EXIT_CRITERIA = Until this change (corrupted brokers delayed election) is merged into upstream Kafka.
- Loading branch information
Showing
9 changed files
with
372 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.