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
- links to