private void removeReplicasFromPartition(AmbryPartition partition, List<AmbryReplica> replicas) {
    ambryPartitionToAmbryReplicas.computeIfPresent(partition, (k, v) -> {
      v.removeAll(replicas);
      clusterWideAllocatedRawCapacityBytes.getAndAdd(-1 * replicas.get(0).getCapacityInBytes() * replicas.size());
      return v;
    });
  }
Remove {@link AmbryReplica}(s) from given {@link AmbryPartition} and update cluster-wide capacity stats
@param partition the {@link AmbryPartition} which replicas should be removed from.
@param replicas list of {@link AmbryReplica} to be removed.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixClusterManager.java