@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PartitionAssignment that = (PartitionAssignment) o;
        return Objects.equals(replicas, that.replicas) && Objects.equals(directories, that.directories);
    }
@return The partition assignment that consists of a list of replica IDs.
metadata/src/main/java/org/apache/kafka/metadata/placement/PartitionAssignment.java