lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject lucene-solr:feature/autoscaling: SOLR-10373: Replace usage of #ANY in replica with a count of 0
Date Fri, 26 May 2017 06:03:11 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/feature/autoscaling c3aa3f9fa -> ded343284


SOLR-10373: Replace usage of #ANY in replica with a count of 0


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

Branch: refs/heads/feature/autoscaling
Commit: ded343284ee1e1028b0fa3e7dee9f8f5195dcd9b
Parents: c3aa3f9
Author: Shalin Shekhar Mangar <shalin@apache.org>
Authored: Fri May 26 11:33:02 2017 +0530
Committer: Shalin Shekhar Mangar <shalin@apache.org>
Committed: Fri May 26 11:33:02 2017 +0530

----------------------------------------------------------------------
 .../solr/cloud/autoscaling/AutoScalingHandlerTest.java       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ded34328/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
b/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
index 460fe64..53823ea 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
@@ -351,7 +351,7 @@ public class AutoScalingHandlerTest extends SolrCloudTestCase {
     String setPolicyCommand =  "{'set-policy': {" +
         "    'xyz':[" +
         "      {'replica':'<2', 'shard': '#EACH', 'node': '#ANY'}," +
-        "      {'nodeRole':'!overseer', 'replica':'#ANY'}" +
+        "      {'nodeRole':'!overseer', 'replica':0}" +
         "    ]," +
         "    'policy1':[" +
         "      {'cores':'<2', 'node':'#ANY'}," +
@@ -425,7 +425,7 @@ public class AutoScalingHandlerTest extends SolrCloudTestCase {
         " 'set-cluster-policy': [" +
         "      {'cores':'<10', 'node':'#ANY'}," +
         "      {'replica':'<2', 'shard': '#EACH', 'node': '#ANY'}," +
-        "      {'nodeRole':'!overseer', 'replica':'#ANY'}" +
+        "      {'nodeRole':'!overseer', 'replica':0}" +
         "    ]" +
         "}";
     req = new AutoScalingRequest(SolrRequest.METHOD.POST, path, setClusterPolicyCommand);
@@ -457,7 +457,7 @@ public class AutoScalingHandlerTest extends SolrCloudTestCase {
         " 'set-cluster-policy': [" +
         "      {'cores':'<10', 'node':'#ANY'}," +
         "      {'replica':'<2', 'shard': '#EACH', 'node': '#ANY'}," +
-        "      {'nodeRole':'!overseer', 'replica':'#ANY'}" +
+        "      {'nodeRole':'!overseer', 'replica':0}" +
         "    ]" +
         "}";
     req = new AutoScalingRequest(SolrRequest.METHOD.POST, path, setClusterPolicyCommand);
@@ -478,7 +478,7 @@ public class AutoScalingHandlerTest extends SolrCloudTestCase {
     String setPolicyCommand =  "{'set-policy': {" +
         "    'xyz':[" +
         "      {'replica':'<2', 'shard': '#EACH', 'node': '#ANY'}," +
-        "      {'nodeRole':'!overseer', 'replica':'#ANY'}" +
+        "      {'nodeRole':'!overseer', 'replica':0}" +
         "    ]," +
         "    'policy1':[" +
         "      {'replica':'<2', 'shard': '#EACH', 'node': '#ANY'}" +


Mime
View raw message