vldpyatkov commented on code in PR #1168:
URL: https://github.com/apache/ignite-3/pull/1168#discussion_r989363218
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/storage/InternalTableImpl.java:
##########
@@ -415,7 +415,17 @@ public CompletableFuture<T> apply(T r, Throwable e) {
throw (RuntimeException) e;
}); // Preserve failed state.
} else {
- tx0.enlistResultFuture(fut);
+ try {
+ tx0.enlistResultFuture(fut);
+ } catch (TransactionException enlistResultException) {
+ return tx0.rollbackAsync().handle((ignored, err) -> {
Review Comment:
So that will not happen because the transaction is already finished.
--
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]