static boolean areAllReplicasForPartitionUp(PartitionId partition) {
    for (ReplicaId replica : partition.getReplicaIds()) {
      if (replica.isDown()) {
        logger.debug("Replica [{}] on {} {} is down", replica.getPartitionId().toPathString(),
            replica.getDataNodeId().getHostname(), replica.getMountPath());
        return false;
      }
    }
    return true;
  }
Check whether all replicas of the given {@link PartitionId} are up.
@param partition the {@link PartitionId} to check.
@return true if all associated replicas are up; false otherwise.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/ClusterMapUtils.java