Skip to content

Commit

Permalink
Fix job will never cancel success when JobMaster init not complete (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
EricJoy2048 authored May 22, 2024
1 parent 6010460 commit b533364
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public JobMaster(
this.seaTunnelServer = seaTunnelServer;
}

public void init(long initializationTimestamp, boolean restart) throws Exception {
public synchronized void init(long initializationTimestamp, boolean restart) throws Exception {
jobImmutableInformation =
nodeEngine.getSerializationService().toObject(jobImmutableInformationData);
jobCheckpointConfig =
Expand Down Expand Up @@ -490,7 +490,7 @@ public Address queryTaskGroupAddress(TaskGroupLocation taskGroupLocation) {
"can't find task group address from taskGroupLocation: " + taskGroupLocation);
}

public void cancelJob() {
public synchronized void cancelJob() {
physicalPlan.cancelJob();
}

Expand Down

0 comments on commit b533364

Please sign in to comment.