nastra commented on code in PR #15389:
URL: https://github.com/apache/iceberg/pull/15389#discussion_r2835955281
##########
api/src/main/java/org/apache/iceberg/Transaction.java:
##########
@@ -183,4 +183,12 @@ default ManageSnapshots manageSnapshots() {
* @throws CommitFailedException If the updates cannot be committed due to
conflicts.
*/
void commitTransaction();
+
+ /**
+ * Abort the transaction by cleaning up uncommitted changes.
+ *
+ * <p>This cleans up any files produced by pending updates and deletes any
uncommitted files
+ * tracked by the transaction.
+ */
+ void abortTransaction();
Review Comment:
yeah just having a default impl that throws an UOE should be enough here.
See also https://iceberg.apache.org/contribute/#adding-a-default-implementation
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]