private ServerErrorCode handleAddStoreRequest(PartitionId partitionId) {
    ServerErrorCode errorCode = ServerErrorCode.NoError;
    ReplicaId replicaToAdd = clusterMap.getBootstrapReplica(partitionId.toPathString(), currentNode);
    if (replicaToAdd == null) {
      logger.error("No new replica found for {} in cluster map", partitionId);
      return ServerErrorCode.ReplicaUnavailable;
    }
    // Attempt to add store into storage manager. If store already exists, fail adding store request.
    if (!storeManager.addBlobStore(replicaToAdd)) {
      logger.error("Failed to add {} into storage manager", partitionId);
      return ServerErrorCode.UnknownError;
    }
    // Attempt to add replica into replication manager. If replica already exists, fail adding replica request
    if (!((ReplicationManager) replicationEngine).addReplica(replicaToAdd)) {
      logger.error("Failed to add {} into replication manager", partitionId);
      return ServerErrorCode.UnknownError;
    }
    // Attempt to add replica into stats manager. If replica already exists, fail adding replica request
    if (statsManager.addReplica(replicaToAdd)) {
      logger.info("{} is successfully added into storage manager, replication manager and stats manager.", partitionId);
    } else {
      errorCode = ServerErrorCode.UnknownError;
      logger.error("Failed to add {} into stats manager", partitionId);
    }
    return errorCode;
  }
Handles admin request that adds a BlobStore to current node
@param partitionId the {@link PartitionId} associated with BlobStore
@return {@link ServerErrorCode} represents result of handling admin request.
ambry-server/src/main/java/com/github/ambry/server/AmbryServerRequests.java