ascherbakoff commented on code in PR #5124:
URL: https://github.com/apache/ignite-3/pull/5124#discussion_r1935155220


##########
modules/raft/src/main/java/org/apache/ignite/internal/raft/RetryContext.java:
##########
@@ -132,10 +132,7 @@ void resetUnavailablePeers() {
      * @return {@code this}.
      */
     RetryContext nextAttempt(Peer newTargetPeer) {
-        // We can avoid recreating the request if the target peer has not 
changed.
-        if (!newTargetPeer.equals(targetPeer)) {

Review Comment:
   We need to recreate request each time to make sure the associated binary 
command is always new.
   Otherwise it's state is shared between current request and retry, causing 
possible races during binary patch.



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