public void optimizingNotNecessary() {
    invokeConsistency(
        () -> {
          if (optimizingStatus == OptimizingStatus.IDLE) {
            lastOptimizedSnapshotId = currentSnapshotId;
            lastOptimizedChangeSnapshotId = currentChangeSnapshotId;
            persistUpdatingRuntime();
          }
        });
  }
When there is no task to be optimized, clean pendingInput and update `lastOptimizedSnapshotId`
to `currentSnapshotId`.
amoro-ams/src/main/java/org/apache/amoro/server/table/DefaultOptimizingState.java