code: @Override
    public void close() {
      if (minor != null)
        minor.cancel(true);
      if (major != null)
        major.cancel(true);
  
      executor.shutdown();
      try {
        executor.awaitTermination(30, TimeUnit.SECONDS);
      } catch (InterruptedException e) {
      }
    }
docs: Closes the log compactor.
  <p>
  When the compactor is closed, existing compaction tasks will be allowed to complete, future scheduled
  compactions will be cancelled, and the underlying {@link ScheduledExecutorService} will be shut down.