dramaticlly commented on code in PR #15389:
URL: https://github.com/apache/iceberg/pull/15389#discussion_r2835635262


##########
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:
   I think we might need to add a default method for this new method to avoid 
break existing class that implemented the Transaction interface.



-- 
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]

Reply via email to