ygerzhedovich commented on code in PR #2757:
URL: https://github.com/apache/ignite-3/pull/2757#discussion_r1373090601
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/ExecutionServiceImpl.java:
##########
@@ -787,6 +790,13 @@ public CompletableFuture<Void> closeAsync() {
}
private void enlistPartitions(MappedFragment mappedFragment,
InternalTransaction tx) {
+ // It's possible to have null txState if transaction isn't started
yet.
+ if (tx != null && !(tx.state() == TxState.PENDING || tx.state() ==
null)) {
+ throw new TransactionException(
+ 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]