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.
This commit is contained in:
Andrzej Bialecki 2018-02-22 17:41:58 +01:00
parent 4446545de6
commit 364b680afa
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class AutoscalingHistoryHandlerTest extends SolrCloudTestCase {
@BeforeClass
public 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);
}