dybyte commented on code in PR #10133:
URL: https://github.com/apache/seatunnel/pull/10133#discussion_r2589076771
##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/physical/PhysicalPlan.java:
##########
@@ -300,7 +316,7 @@ public void makeJobFailing(Throwable e) {
updateJobState(JobStatus.FAILING);
}
- public void startJob() {
+ public synchronized void startJob() {
isRunning = true;
log.info("{} state process is start", getJobFullName());
updateJobState(JobStatus.SCHEDULED);
Review Comment:
I added `synchronized` to prevent race conditions on the `isRunning` field,
independently of the `stateProcess` method.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]