alex-plekhanov commented on code in PR #12925:
URL: https://github.com/apache/ignite/pull/12925#discussion_r3480770902


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxManager.java:
##########
@@ -3123,8 +3126,28 @@ private TxRecoveryInitRunnable(ClusterNode node) {
                         ", failedNodeId=" + evtNodeId + ']');
 
                 for (final IgniteInternalTx tx : activeTransactions()) {
-                    if ((tx.near() && !tx.local() && 
tx.originatingNodeId().equals(evtNodeId))
-                        || (tx.storeWriteThrough() && 
tx.masterNodeIds().contains(evtNodeId))) {
+                    Map<UUID, Collection<UUID>> txNodes = 
tx.transactionNodes();
+
+                    if (tx.storeWriteThrough() && txNodes != null
+                        && tx.near() && txNodes.containsKey(evtNodeId)
+                        && (tx.state() == PREPARING || tx.state() == PREPARED
+                        || tx.state() == COMMITTING || tx.state() == 
COMMITTED)) {
+                        // Send a message, tx is applied on near node and can 
be processed on backup if postponed.
+                        sendTxSalvage(tx, evtNodeId);
+                    }
+
+                    Supplier<Boolean> fullSyncedOp = () -> 
tx.writeEntries().stream().map(e ->
+                        
cctx.cacheContext(e.cacheId())).allMatch(GridCacheContext::syncCommit);

Review Comment:
   What is unexpected? If any of caches have FULL_SYNC - return FULL_SYNC, else 
if any of caches have PRIMARY_SYNC return PRIMARY_SYNC, else (all caches have 
FULL_ASYNC) - return FULL_ASYNC



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