valepakh commented on code in PR #3673:
URL: https://github.com/apache/ignite-3/pull/3673#discussion_r1584475750


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/storage/InternalTableImpl.java:
##########
@@ -793,14 +788,10 @@ private <R> CompletableFuture<R> 
evaluateReadOnlyPrimaryNode(
 
         CompletableFuture<R> fut = 
primaryReplicaFuture.thenCompose(primaryReplica -> {
             try {
-                ClusterNode node = 
clusterNodeResolver.getByConsistentId(primaryReplica.getLeaseholder());
-
-                if (node == null) {
-                    throw new TransactionException(REPLICA_UNAVAILABLE_ERR, 
"Failed to resolve the primary replica node [consistentId="
-                            + primaryReplica.getLeaseholder() + ']');
-                }
+                ClusterNode node = 
getClusterNode(primaryReplica.getLeaseholder());
 
-                return replicaSvc.invoke(node, op.apply(tablePartitionId, 
primaryReplica.getStartTime().longValue()));
+                return replicaSvc.invoke(node, op.apply(tablePartitionId, 
primaryReplica.getStartTime().longValue())
+                );

Review Comment:
   ```suggestion
                   return replicaSvc.invoke(node, op.apply(tablePartitionId, 
primaryReplica.getStartTime().longValue()));
   ```



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