Skip to content

Commit

Permalink
[Hotfix][Seatunnel-engine] Optimize the code
Browse files Browse the repository at this point in the history
  • Loading branch information
dailai committed Jun 13, 2024
1 parent 526c5de commit 6812e03
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,18 +310,11 @@ public void triggerBarrier(Barrier barrier) throws Exception {
"lock checkpoint[{}] waiting for complete..., phase: [{}]",
barrier.getId(),
schemaChangePhase.get().getPhase());
} else if (prepareClose) {
TaskLocation taskLocation = runningTask.getTaskLocation();
log.info(
"Task[{}]({}/{}) prepare close",
taskLocation.getTaskID(),
taskLocation.getPipelineId(),
taskLocation.getJobId());
} else {
throw new IllegalStateException(
String.format(
"schema-change checkpoint[%s] and phase[%s] is not matched",
barrier.getId(), checkpointType));
log.debug(
"Ignore schema-change checkpoint[{}], phase: [{}]",
barrier.getId(),
checkpointType);
}
}
}
Expand Down

0 comments on commit 6812e03

Please sign in to comment.