sanpwc commented on code in PR #1369:
URL: https://github.com/apache/ignite-3/pull/1369#discussion_r1034938891


##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/ReplicaService.java:
##########
@@ -100,14 +112,57 @@ private <R> CompletableFuture<R> 
sendToReplica(ClusterNode node, ReplicaRequest
 
                 if (response instanceof ErrorReplicaResponse) {
                     var errResp = (ErrorReplicaResponse) response;
-                    res.completeExceptionally(errResp.throwable());
+
+                    if (errResp.throwable() instanceof 
ReplicaUnavailableException) {
+                        pendingInvokes.compute(node, (clusterNode, fut) -> {
+                            AwaitReplicaRequest awaitReplicaReq = 
REPLICA_MESSAGES_FACTORY.awaitReplicaRequest()

Review Comment:
   Seems that we may put message preparation inside fut == null clause.



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