From 07b418191ca12716ebea4e6ecc1091be196e207d Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Tue, 5 Nov 2024 16:21:59 -0600 Subject: [PATCH] CNDB-11594 fix test_counter_leader_with_partial_view by restoring CASSANDRA-13043 --- src/java/org/apache/cassandra/service/StorageProxy.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java/org/apache/cassandra/service/StorageProxy.java b/src/java/org/apache/cassandra/service/StorageProxy.java index 595fd6213bcd..7f633f8bb9ae 100644 --- a/src/java/org/apache/cassandra/service/StorageProxy.java +++ b/src/java/org/apache/cassandra/service/StorageProxy.java @@ -1952,6 +1952,7 @@ private static Replica findSuitableReplica(String keyspaceName, DecoratedKey key // CASSANDRA-13043: filter out those endpoints not accepting clients yet, maybe because still bootstrapping // We have a keyspace, so filter by affinity too replicas = replicas.filter(IFailureDetector.isReplicaAlive) + .filter(r -> StorageService.instance.isRpcReady(r.endpoint())) .filter(snitch.filterByAffinity(keyspace.getName())); // CASSANDRA-17411: filter out endpoints that are not alive