public void finishIteration() {
    remoteReplicaGroup = null;

    inflightReplicaTrackers.forEach(ReplicaTracker::finishIteration);
    inflightReplicaTrackers.clear();
  }
removes remote replica group from tracking, finishes iterations for inflight replicas
and removes from tracking afterward
ambry-replication/src/main/java/com/github/ambry/replication/continuous/GroupTracker.java