JingsongLi commented on code in PR #8730:
URL: https://github.com/apache/paimon/pull/8730#discussion_r3612141863
##########
paimon-core/src/main/java/org/apache/paimon/table/format/FormatTableCommit.java:
##########
@@ -172,11 +210,28 @@ public void commit(List<CommitMessage> commitMessages) {
}
} catch (Exception e) {
- this.abort(commitMessages);
- throw new RuntimeException(e);
+ if (!partitionRegistrationStarted) {
+ this.abort(commitMessages);
+ throw new RuntimeException(e);
+ }
+ throw e instanceof RuntimeException ? (RuntimeException) e : new
RuntimeException(e);
}
}
+ private RuntimeException partitionRegistrationFailure(RuntimeException
cause) {
Review Comment:
Why need a 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]