Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1483

Split Brain about Leader Partitions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8.2.0
    • None

    Description

      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.

      Attachments

        1. KAFKA-1483_2014-07-16_11:07:44.patch
          22 kB
          Harsha
        2. KAFKA-1483.patch
          41 kB
          Harsha

        Activity

          People

            sriharsha Harsha
            guozhang Guozhang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: