petrov-mg commented on code in PR #12656:
URL: https://github.com/apache/ignite/pull/12656#discussion_r2728017820


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicAbstractUpdateFuture.java:
##########
@@ -402,8 +405,10 @@ final void map(ClusterNode nearNode,
             needReplyToNear = true;
         }
 
-        // If there are readers updates then nearNode should not finish before 
primary response received.
-        sendDhtRequests(nearNode, ret, !readersOnlyNodes);
+        // "Near" node should not finish until it receives a response from 
primary node in the following cases:
+        // - only "near cache" is updated
+        // - primary failed to process any keys
+        sendDhtRequests(nearNode, ret, !(readersOnlyNodes || 
hasPrimaryUpdErrors));

Review Comment:
   An additional test was added to check for the case where the primary node 
successfully sends a GridNearAtomicUpdateResponse, but this happens after all 
responses have been received by the `near` node.



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