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


##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/ReplicaManager.java:
##########
@@ -261,6 +261,35 @@ private void onReplicaMessageReceived(NetworkMessage 
message, String senderConsi
                     }
                 }
 
+                if (res.repFuture() != null) {
+                    assert request instanceof PrimaryReplicaRequest;
+
+                    res.repFuture().handle((res0, ex0) -> {
+                        NetworkMessage msg0;
+
+                        LOG.debug("Sending delayed response for replica 
request [request={}]", request);
+
+                        if (ex == null) {
+                            msg0 = prepareReplicaResponse(finalSendTimestamp, 
res0);
+                        } else {
+                            LOG.warn("Failed to process delayed response 
[request={}]", ex, request);
+
+                            msg0 = 
prepareReplicaErrorResponse(finalSendTimestamp, ex);

Review Comment:
   It doesn't matter here and can not break anything.



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to