This is an automated email from the ASF dual-hosted git repository.

epugh pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_10x by this push:
     new 77fb9552f8a SOLR-18366: Remove 
AbstractFullDistribZkTestBase.getTotalReplicas (#4796)
77fb9552f8a is described below

commit 77fb9552f8ae865be5cd49f49f9bb013c6692ca0
Author: Serhiy Bzhezytskyy <[email protected]>
AuthorDate: Sun Aug 23 12:57:03 2026 +0300

    SOLR-18366: Remove AbstractFullDistribZkTestBase.getTotalReplicas (#4796)
    
    (cherry picked from commit 79b0f9968bef3e444436fbc9c30cae16f74a65a5)
---
 .../solr/cloud/AbstractFullDistribZkTestBase.java       | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git 
a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java
 
b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java
index 20ca8279083..d8969be4128 100644
--- 
a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java
+++ 
b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java
@@ -746,23 +746,6 @@ public abstract class AbstractFullDistribZkTestBase 
extends BaseDistributedSearc
     return 0;
   }
 
-  /**
-   * Total number of replicas for all shards as indicated by the cluster 
state, regardless of
-   * status.
-   *
-   * @deprecated This method is virtually useless as it does not consider the 
status of either the
-   *     shard or replica, nor whether the node hosting each replica is alive.
-   */
-  @Deprecated
-  protected int getTotalReplicas(DocCollection c, String collection) {
-    if (c == null) return 0; // support for when collection hasn't been 
created yet
-    int cnt = 0;
-    for (Slice slices : c.getSlices()) {
-      cnt += slices.getReplicas().size();
-    }
-    return cnt;
-  }
-
   public JettySolrRunner createJetty(
       String dataDir, String ulogDir, String shardList, String 
solrConfigOverride)
       throws Exception {

Reply via email to