public void completeEmptyProcess() {
    invokeConsistency(
        () -> {
          pendingInput = null;
          if (optimizingStatus == OptimizingStatus.PLANNING
              || optimizingStatus == OptimizingStatus.PENDING) {
            updateOptimizingStatus(OptimizingStatus.IDLE);
            lastOptimizedSnapshotId = currentSnapshotId;
            lastOptimizedChangeSnapshotId = currentChangeSnapshotId;
            persistUpdatingRuntime();
            tableHandler.handleTableChanged(tableRuntime, optimizingStatus);
          }
        });
  }
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