private void consumeReceivedVersions() {
    int idx = (int) (previousVersion - receivedBaseVersion + 1);
    while (previousVersion < nextVersion && received.get(idx)) {
      idx++;
      previousVersion++;
    }
    if (previousVersion < nextVersion) {
      idx = (int) (nextVersion - receivedBaseVersion) - 1;
      while (previousVersion < nextVersion && received.get(idx)) {
        idx--;
        nextVersion--;
      }
    }
  }
checks to see if any of the received versions can be merged into the start/end version numbers
geode-core/src/main/java/org/apache/geode/internal/cache/versions/RVVExceptionB.java