boolean removeReplica(ReplicaId id) {
    boolean success = partitionToReplicaMap.remove(id.getPartitionId()) != null;
    if (success) {
      logger.info("Partition {} is removed from StatsManager", id.getPartitionId());
    } else {
      logger.error("Failed to remove partition {} because it doesn't exist in StatsManager", id.getPartitionId());
    }
    return success;
  }
Remove {@link ReplicaId} from StatsManager and thus it won't be checked during next round of aggregation.
@param id the {@link ReplicaId} associated with store to be removed
@return {@code true} if removing replica was successful. {@code false} if the replica doesn't exist.
ambry-server/src/main/java/com/github/ambry/server/StatsManager.java