public List<Node> replicas() {
        return replicas;
    }
Return the replicas of the partition in the same order as the replica assignment. The preferred replica is the
head of the list.

Brokers with version lower than 0.11.0.0 return the replicas in unspecified order due to a bug.
clients/src/main/java/org/apache/kafka/common/TopicPartitionInfo.java