Apache Lucene open-source search software
SOLR-11407: Increase the imbalance of the cluster to increase the pressure to relocate replicas - in some test runs the policy decided not to move any replicas.
Andrzej Bialecki364b680afaf9
diff --git a/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java b/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.javaindex 5e44ee08c1d..8bb336df4ad 100644--- a/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java+++ b/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java@@ -75,7 +75,7 @@ public class AutoscalingHistoryHandlerTest extends SolrCloudTestCase {@BeforeClasspublic static void setupCluster() throws Exception {- configureCluster(4)+ configureCluster(2).addConfig("conf", configset("cloud-minimal")).configure();solrClient = cluster.getSolrClient();@@ -90,6 +90,7 @@ public class AutoscalingHistoryHandlerTest extends SolrCloudTestCase {otherNodes.remove(systemCollNode);CollectionAdminRequest.createCollection(COLL_NAME, null, 1, 3).setCreateNodeSet(String.join(",", otherNodes))+ .setMaxShardsPerNode(3).process(solrClient);}