nizhikov commented on code in PR #10314:
URL: https://github.com/apache/ignite/pull/10314#discussion_r1027737850
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtTxFinishFuture.java:
##########
@@ -239,7 +241,21 @@ public void onResult(UUID nodeId, GridDhtTxFinishResponse
res) {
try {
boolean nodeStopping = X.hasCause(err,
NodeStoppingException.class);
- this.tx.tmFinish(err == null, nodeStopping ||
cctx.kernalContext().failure().nodeStopping(), false);
+ if (cctx.consistentCutMgr() != null &&
this.tx.currentPrepareFuture() != null) {
Review Comment:
Or, at least, extract wrap logic to the utility method.
--
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]