public String toString() {
        String elrString = elr != null ? elr.stream().map(Node::toString).collect(Collectors.joining(", ")) : "N/A";
        String lastKnownElrString = lastKnownElr != null ? lastKnownElr.stream().map(Node::toString).collect(Collectors.joining(", ")) : "N/A";
        return "(partition=" + partition + ", leader=" + leader + ", replicas=" +
            replicas.stream().map(Node::toString).collect(Collectors.joining(", ")) + ", isr=" + isr.stream().map(Node::toString).collect(Collectors.joining(", ")) +
            ", elr=" + elrString + ", lastKnownElr=" + lastKnownElrString + ")";
    }
Return the last known eligible leader replicas of the partition. Note that the ordering of the result is unspecified.
clients/src/main/java/org/apache/kafka/common/TopicPartitionInfo.java