You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "Hisoka-X (via GitHub)" <gi...@apache.org> on 2025/09/03 14:24:51 UTC
Re: [PR] [Fix][Zeta] Fix pendingJobMasterMap resource leak [seatunnel]
Hisoka-X commented on code in PR #9749:
URL: https://github.com/apache/seatunnel/pull/9749#discussion_r2319157107
##########
seatunnel-core/seatunnel-starter/src/main/java/org/apache/seatunnel/core/starter/seatunnel/command/ClientExecuteCommand.java:
##########
@@ -211,8 +211,11 @@ public void execute() throws CommandExecuteException {
0,
TimeUnit.SECONDS);
}
-
- // wait for job complete
+ // In the two scenarios of pending state cancellation and task resource insufficient
+ // error, when the corresponding JobStatus is not stored, the
+ // CoordinatorService.getJobStatus method will return NULL, which can be avoided by
+ // sleeping for 200 milliseconds
+ TimeUnit.MILLISECONDS.sleep(200);
Review Comment:
-1. We should NEVER use sleep to make sure the status change. It's very unstable!
--
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-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org