You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2018/10/16 22:53:40 UTC

[25/50] [abbrv] lucene-solr:jira/http2: SOLR-12739: Use legacy assignment in AutoAddReplicasPlanActionTest

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/971a0e3f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/971a0e3f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/971a0e3f

Branch: refs/heads/jira/http2
Commit: 971a0e3f4afddab4687642834037c52fef0c6758
Parents: 80011d6
Author: Shalin Shekhar Mangar <sh...@apache.org>
Authored: Thu Oct 11 08:58:47 2018 +0530
Committer: Shalin Shekhar Mangar <sh...@apache.org>
Committed: Thu Oct 11 08:58:47 2018 +0530

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


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/971a0e3f/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