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

Replica list in the metadata cache on the broker may have different order from zookeeper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.2.1
    • 0.11.0.0
    • None

    Description

      It looks that in PartitionStateInfo we are storing the replicas in a set instead of a Seq. This causes the replica order to be lost. In most case it is fine, but in the context of preferred leader election, the replica order determines which replica is the preferred leader of a partition. It would be useful to make the order always be consistent with the order in zookeeper.

      Attachments

        Issue Links

          Activity

            People

              ijuma Ismael Juma
              becket_qin Jiangjie Qin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: