Skip to content

Commit

Permalink
[hotfix-#1501]fix throw NoRestartException can not sotp application (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhourui999 authored Feb 17, 2023
1 parent a26621f commit ecd926a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,12 @@ public synchronized FormatState getFormatState() throws Exception {
"getFormatState:Start preCommit, rowsOfCurrentTransaction: {}",
rowsOfCurrentTransaction);
preCommit();
checkTimerWriteException();
} catch (Exception e) {
LOG.error("preCommit error, e = {}", ExceptionUtil.getErrorMessage(e));
if (e instanceof NoRestartException) {
throw e;
}
} finally {
flushEnable.compareAndSet(true, false);
}
Expand Down

0 comments on commit ecd926a

Please sign in to comment.