You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2021/10/27 06:35:48 UTC
[lucene-solr] 02/02: added test
This is an automated email from the ASF dual-hosted git repository.
noble pushed a commit to branch jira/SOLR15722
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit d6e8cc1807025c848ebc0cd28ad39f98c16ffc34
Author: Noble Paul <no...@gmail.com>
AuthorDate: Wed Oct 27 17:35:22 2021 +1100
added test
---
.../test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java
index 6f94315..853b3e3 100644
--- a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java
+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java
@@ -1121,6 +1121,11 @@ public class CloudSolrClientTest extends SolrCloudTestCase {
prs = PerReplicaStates.fetch(ZkStateReader.getCollectionPath(testCollection), cluster.getZkClient(), null);
assertEquals(5, prs.states.size());
+ c = cluster.getSolrClient().getZkStateReader().getCollection(testCollection);
+ Replica toDelete = c.getReplica((shard, replica) -> "shard1".equals(shard) && !replica.isLeader());
+ CollectionAdminRequest.deleteReplica(testCollection, "shard1", toDelete.getName()).process(cluster.getSolrClient());
+ cluster.waitForActiveCollection(testCollection, 2, 4);
+
testCollection = "perReplicaState_testv2";
new V2Request.Builder("/collections")
.withMethod(POST)