ygerzhedovich commented on code in PR #2757:
URL: https://github.com/apache/ignite-3/pull/2757#discussion_r1373089766


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/storage/InternalTableImpl.java:
##########
@@ -331,7 +331,8 @@ private <T> CompletableFuture<T> enlistInTx(
         // It's possible to have null txState if transaction isn't started yet.
         if (tx != null && !(tx.state() == TxState.PENDING || tx.state() == 
null)) {
             return failedFuture(new TransactionException(
-                    "The operation is attempted for completed transaction"));
+                    TX_FAILED_READ_WRITE_OPERATION_ERR,
+                    format("Transaction is already finished [id={}, 
state={}]", tx.id(), tx.state())));

Review Comment:
   ```suggestion
                       format("Transaction is already finished [id={}, 
state={}].", tx.id(), tx.state())));
   ```



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