public boolean isGroupDone() {
    return isInFlight() && remoteReplicaGroup.isDone();
  }
@return checks and returns true if group is getting tracked and in done state, false otherwise
ambry-replication/src/main/java/com/github/ambry/replication/continuous/GroupTracker.java