Skip to content

Commit ecd926a

Browse files
authored
[hotfix-#1501]fix throw NoRestartException can not sotp application (#1507)
1 parent a26621f commit ecd926a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

chunjun-core/src/main/java/com/dtstack/chunjun/sink/format/BaseRichOutputFormat.java

+4
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,12 @@ public synchronized FormatState getFormatState() throws Exception {
551551
"getFormatState:Start preCommit, rowsOfCurrentTransaction: {}",
552552
rowsOfCurrentTransaction);
553553
preCommit();
554+
checkTimerWriteException();
554555
} catch (Exception e) {
555556
LOG.error("preCommit error, e = {}", ExceptionUtil.getErrorMessage(e));
557+
if (e instanceof NoRestartException) {
558+
throw e;
559+
}
556560
} finally {
557561
flushEnable.compareAndSet(true, false);
558562
}

0 commit comments

Comments
 (0)