lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctarg...@apache.org
Subject [11/50] [abbrv] lucene-solr:jira/solr-12746: SOLR-12739: Use legacy assignment in AutoAddReplicasPlanActionTest
Date Mon, 22 Oct 2018 23:34:56 GMT
SOLR-12739: Use legacy assignment in AutoAddReplicasPlanActionTest


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/94a13610
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/94a13610
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/94a13610

Branch: refs/heads/jira/solr-12746
Commit: 94a13610e497343422651da61ad03cb9c02dc0d9
Parents: b67df04
Author: Shalin Shekhar Mangar <shalin@apache.org>
Authored: Thu Oct 11 08:58:47 2018 +0530
Committer: Cassandra Targett <ctargett@apache.org>
Committed: Sun Oct 21 15:46:46 2018 -0500

----------------------------------------------------------------------
 .../solr/cloud/autoscaling/AutoAddReplicasPlanActionTest.java | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/94a13610/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoAddReplicasPlanActionTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoAddReplicasPlanActionTest.java
b/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoAddReplicasPlanActionTest.java
index 1e25014..31bd2fd 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoAddReplicasPlanActionTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoAddReplicasPlanActionTest.java
@@ -28,6 +28,7 @@ import org.apache.solr.client.solrj.SolrRequest;
 import org.apache.solr.client.solrj.cloud.autoscaling.TriggerEventType;
 import org.apache.solr.client.solrj.embedded.JettySolrRunner;
 import org.apache.solr.client.solrj.request.CollectionAdminRequest;
+import org.apache.solr.client.solrj.request.V2Request;
 import org.apache.solr.cloud.CloudDescriptor;
 import org.apache.solr.cloud.SolrCloudTestCase;
 import org.apache.solr.common.cloud.ClusterStateUtil;
@@ -51,6 +52,12 @@ public class AutoAddReplicasPlanActionTest extends SolrCloudTestCase{
     configureCluster(3)
         .addConfig("conf", configset("cloud-minimal"))
         .configure();
+
+    new V2Request.Builder("/cluster")
+        .withMethod(SolrRequest.METHOD.POST)
+        .withPayload("{set-obj-property:{defaults : {cluster: {useLegacyReplicaAssignment:true}}}}}")
+        .build()
+        .process(cluster.getSolrClient());
   }
 
   @Test


Mime
View raw message