@Override
  public boolean addBlobStoreForFileCopy(ReplicaId replica) {
    if (!partitionToDiskManager.containsKey(replica.getPartitionId())) {
      logger.info("PartitionId {} doesn't exist in storage manager during state build, rejecting adding store request",
          replica.getPartitionId());
      return false;
    }
    // We don't require addDisk since DiskManager is already started during initialization of StorageManager as part
    // of prefilecopy steps. We will fetch it from partitionToDiskManager map.
    DiskManager diskManager = partitionToDiskManager.get(replica.getPartitionId());
    if (diskManager == null || !diskManager.addBlobStoreForFileCopy(replica)) {
      logger.error("Failed to add new store into DiskManager");
      return false;
    }
    logger.info("New store is successfully added into StorageManager");
    return true;
  }
Add a new store to the storage manager for file copy based replication post filecopy is completed.
@param replica the {@link ReplicaId} of the {@link Store} which would be added.
@return
ambry-store/src/main/java/com/github/ambry/store/StorageManager.java