boolean addReplica(ReplicaId id) {
    boolean success = partitionToReplicaMap.putIfAbsent(id.getPartitionId(), id) == null;
    if (success) {
      logger.info("Partition {} is added into StatsManager", id.getPartitionId());
    } else {
      logger.error("Failed to add partition {} because it is already in StatsManager", id.getPartitionId());
    }
    return success;
  }
Add new {@link ReplicaId} to StatsManager and thus stats of this store will be collected during next round of aggregation.
@param id the {@link ReplicaId} associated with store to be added
@return {@code true} if adding replica was successful. {@code false} if not.
ambry-server/src/main/java/com/github/ambry/server/StatsManager.java