private static void throwInvalidReplicationFactorIfNonPositive(int replicationFactor) {
        if (replicationFactor <= 0) {
            throw new InvalidReplicationFactorException("Invalid replication factor " +
                    replicationFactor + ": the replication factor must be positive.");
        }
    }
The offset we use to determine which rack is returned first.
metadata/src/main/java/org/apache/kafka/metadata/placement/StripedReplicaPlacer.java