public PartitionChangeBuilder setDirectory(int brokerId, Uuid dir) {
        this.targetDirectories.put(brokerId, dir);
        return this;
    }
Prefer replicas in the ISR but keep the partition online even if it requires picking a leader that is not in the ISR.
metadata/src/main/java/org/apache/kafka/controller/PartitionChangeBuilder.java