private void updateOptimizingStatus(OptimizingStatus status) {
    this.optimizingStatus = status;
    this.currentStatusStartTime = System.currentTimeMillis();
    this.optimizingMetrics.statusChanged(status, currentStatusStartTime);
  }
TODO: this is not final solution

@param startTimeMills
amoro-ams/src/main/java/org/apache/amoro/server/table/DefaultOptimizingState.java