feat(catalog): Add ErrorKind::CatalogCommitConflicts#1452
feat(catalog): Add ErrorKind::CatalogCommitConflicts#1452Xuanwo merged 2 commits intoapache:mainfrom
Conversation
|
I actually suggest that we change the name. |
I think this is similar to java's name convention, see https://github.com/apache/iceberg/blob/6bd6887db1f90674ca5e20e88cc95c5f92dcb050/core/src/main/java/org/apache/iceberg/BaseTransaction.java#L423 |
I agree with you that following similar Java naming conventions can benefit developers coming from Java. However, having a consistent error kind naming style makes it easier for us to maintain the list and for users to use it. I propose the name
It's clean, self-descriptive, well-structured, and can easily scale to other possible error kinds. By the way, I think |
Sounds reasonable to me. |
|
Hi @liurenjie1024 @Xuanwo , thanks for the vaulable inputs! I've updated the error kind name based on the suggestion, please take a look again |
liurenjie1024
left a comment
There was a problem hiding this comment.
Thanks @CTTY for this pr!
|
cc @Xuanwo to take another look. |
Which issue does this PR close?
Related issue: #1387
What changes are included in this PR?
Add a new
ErrorKind:CatalogCommitConflictsfor catalog to return and indicate that the operation can be retried.Are these changes tested?