@Override
  protected void invokeConsistency(Runnable runnable) {
    tableLock.lock();
    try {
      super.invokeConsistency(runnable);
    } finally {
      tableLock.unlock();
    }
  }
Check if operation are blocked now.

@param operation - operation to check
@return true if blocked
amoro-ams/src/main/java/org/apache/amoro/server/table/DefaultOptimizingState.java