You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Neha Narkhede (JIRA)" <ji...@apache.org> on 2014/07/25 01:51:40 UTC
[jira] [Resolved] (KAFKA-1483) Split Brain about Leader Partitions
[ https://issues.apache.org/jira/browse/KAFKA-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neha Narkhede resolved KAFKA-1483.
----------------------------------
Resolution: Fixed
Assignee: Sriharsha Chintalapani (was: Neha Narkhede)
Sorry about the delay. Pushed the latest reviewed patch to trunk.
> Split Brain about Leader Partitions
> -----------------------------------
>
> Key: KAFKA-1483
> URL: https://issues.apache.org/jira/browse/KAFKA-1483
> Project: Kafka
> Issue Type: Improvement
> Reporter: Guozhang Wang
> Assignee: Sriharsha Chintalapani
> Labels: newbie++
> Fix For: 0.9.0
>
> Attachments: KAFKA-1483.patch, KAFKA-1483_2014-07-16_11:07:44.patch
>
>
> Today in the server there are two places storing the leader partition info:
> 1) leaderPartitions list in the ReplicaManager.
> 2) leaderBrokerIdOpt in the Partition.
> 1) is used as the ground truth to decide if the server is the current leader for serving requests; 2) is used as the ground truth for reporting leader counts metrics, etc and for the background Shrinking-ISR thread to decide which partition to check. There is a risk that these two ground truth caches are not consistent, and we'd better only make one of them as the ground truth.
--
This message was sent by Atlassian JIRA
(v6.2#6252)