ascherbakoff commented on code in PR #7588:
URL: https://github.com/apache/ignite-3/pull/7588#discussion_r2851206192


##########
modules/client/src/main/java/org/apache/ignite/internal/client/tx/ClientLazyTransaction.java:
##########
@@ -92,14 +93,7 @@ public CompletableFuture<Void> commitAsync() {
 
     @Override
     public void rollback() throws TransactionException {
-        var tx0 = tx;
-
-        if (tx0 == null) {
-            // No operations were performed, nothing to rollback.
-            return;
-        }
-
-        tx0.join().rollback();
+        rollbackAsync().join();

Review Comment:
   Wrapped commit and rollback future in ViewUtils.sync. This should be enough.



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

Reply via email to