docs: @Override
      public synchronized void submit(long offset) {
          if (submittedOffset == -1L && offset >= 0) {
              committedOffsets[idx(offset)] = safeOffset = submittedOffset = offset;
          }
          if (firstOffset == -1L) {
              firstOffset = offset;
          }
          if ((offset - safeOffset) >= committedOffsets.length) {
              offerOffset = offset;
              try {
                  wait(m_gapFullWait);
              } catch (InterruptedException e) {
                  LOGGER.rateLimitedLog(LOG_SUPPRESSION_INTERVAL_SECONDS,
                          Level.WARN, e, "CommitTracker wait was interrupted for group " + consumerGroup + " topic " + topic + " partition " + partition);
              }
          }
          if (offset > submittedOffset) {
              submittedOffset = offset;
          }
      }