public synchronized void stop() throws InterruptedException {
      stop = true;
      thread.interrupt();
      thread.join();
    }
Test the logic for {@link TableManager#queryTableOptimizingInfo(String, String, String, List,
int, int)}.
amoro-ams/src/test/java/org/apache/amoro/server/TestDefaultOptimizingService.java