Jzjsnow commented on code in PR #3640:
URL: https://github.com/apache/amoro/pull/3640#discussion_r2221338395


##########
amoro-ams/src/main/java/org/apache/amoro/server/DefaultOptimizingService.java:
##########
@@ -512,10 +515,19 @@ public void run() {
     }
 
     private void retryTask(TaskRuntime<?> task, OptimizingQueue queue) {
-      LOG.info(
-          "Task {} is suspending, since it's optimizer is expired, put it to 
retry queue, optimizer {}",
-          task.getTaskId(),
-          task.getResourceDesc());
+      if (task.getStatus() == TaskRuntime.Status.ACKED
+          && task.getStartTime() + taskExecuteTimeout < 
System.currentTimeMillis()) {
+        LOG.warn(
+            "Task {} is suspending at ACK status (start time: {}), put it to 
retry queue, optimizer {}",

Review Comment:
   Thanks for the suggestion, we've updated the logs to include possible causes 
of the timeout.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@amoro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to