@Override
      public void onPartitionRemoved(PartitionId partitionId) {
        if (partitionId.isEqual(cloudConfig.vcrHelixUpdaterPartitionId)) {
          vcrHelixUpdateLock.lock();
          try {
            isVcrHelixUpdater = false;
            if (vcrHelixUpdateFuture != null) {
              vcrHelixUpdateFuture.cancel(false);
            }
            if (ambryVcrHelixSyncCheckTaskFuture != null) {
              ambryVcrHelixSyncCheckTaskFuture.cancel(false);
            }
          } catch (Throwable e) {
            logger.error("Failed to stop VCR updater due to {}", e);
          } finally {
            vcrHelixUpdateLock.unlock();
          }
        }
        removePartition(partitionId);
      }
Remove a list of {@link RemoteReplicaInfo} from each's {@link ReplicaThread}.
@param remoteReplicaInfos List of {@link RemoteReplicaInfo} to remote.
ambry-cloud/src/main/java/com/github/ambry/cloud/VcrReplicationManager.java