docs: public void checkOrRepairSequence(final int partition, final long nextSequence, final boolean viaAntiEntropy) {
          assert nextSequence > 0;
  
          MetaDataContainer metaData = getMetaDataContainer(partition);
          while (true) {
              final long currentSequence = metaData.getSequence();
              if (currentSequence >= nextSequence) {
                  break;
              }
              if (metaData.casSequence(currentSequence, nextSequence)) {
                  final long sequenceDiff = nextSequence - currentSequence;
                  if (viaAntiEntropy || sequenceDiff > 1L) {
                      // we have found at least one missing sequence between current and next sequences. if miss is detected by
                      // anti-entropy, number of missed sequences will be `miss = next - current`, otherwise it means miss is
                      // detected by observing received invalidation event sequence numbers and number of missed sequences will be
                      // `miss = next - current - 1`.
                      final long missCount = viaAntiEntropy ? sequenceDiff : sequenceDiff - 1;
                      final long totalMissCount = metaData.addAndGetMissedSequenceCount(missCount);
  
                      if (logger.isFinestEnabled()) {
                          logger.finest(format("%s:[map=%s,partition=%d,currentSequence=%d,nextSequence=%d,totalMissCount=%d]",
                                  "Invalid sequence", name, partition, currentSequence, nextSequence, totalMissCount));
                      }
                  }
                  break;
              }
          }
      }