@Override
  public boolean removeReplica(DiskId diskId, ReplicaId replicaId) {
    lock.lock();
    logger.info("removing replica {} from disk {}", replicaId, diskId);
    LinkedHashSet<ReplicaId> replicaQueue = diskIdToReplicaQueue.getOrDefault(diskId, new LinkedHashSet<>());
    boolean wasElementPresent = replicaQueue.remove(replicaId);
    lock.unlock();
    return wasElementPresent;
  }
Removes the replicas from the queue
@param diskId the {@link DiskId} that the replicas are on.
@param replicaId the {@link ReplicaId} to remove.
@return true if replica was removed, false otherwise
ambry-prioritization/src/main/java/com/github/ambry/replica/prioritization/FileCopyDisruptionBasedPrioritizationManager.java