lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r1647551 - in /lucene/dev/trunk/solr: CHANGES.txt core/src/java/org/apache/solr/cloud/Overseer.java
Date Tue, 23 Dec 2014 11:34:40 GMT
Author: shalin
Date: Tue Dec 23 11:34:39 2014
New Revision: 1647551

URL: http://svn.apache.org/r1647551
Log:
SOLR-6883: CLUSTERPROP API switch case does not call break

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/Overseer.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1647551&r1=1647550&r2=1647551&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Tue Dec 23 11:34:39 2014
@@ -531,6 +531,8 @@ Other Changes
 
 * SOLR-6881: Add split.key support for SPLITSHARD via SolrJ (Anshum Gupta)
 
+* SOLR-6883: CLUSTERPROP API switch case does not call break. (Varun Thacker via shalin)
+
 ==================  4.10.3 ==================
 
 Bug Fixes

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/Overseer.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/Overseer.java?rev=1647551&r1=1647550&r2=1647551&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/Overseer.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/Overseer.java Tue Dec 23 11:34:39
2014
@@ -398,6 +398,7 @@ public class Overseer implements Closeab
             return new SliceMutator(getZkStateReader()).addReplica(clusterState, message);
           case CLUSTERPROP:
             handleProp(message);
+            break;
           case ADDREPLICAPROP:
             return new ReplicaMutator(getZkStateReader()).addReplicaProperty(clusterState,
message);
           case DELETEREPLICAPROP:
@@ -470,8 +471,8 @@ public class Overseer implements Closeab
       else m.put(name,val);
 
       try {
-        if(reader.getZkClient().exists(ZkStateReader.CLUSTER_PROPS,true))
-          reader.getZkClient().setData(ZkStateReader.CLUSTER_PROPS,ZkStateReader.toJSON(m),true);
+        if (reader.getZkClient().exists(ZkStateReader.CLUSTER_PROPS, true))
+          reader.getZkClient().setData(ZkStateReader.CLUSTER_PROPS, ZkStateReader.toJSON(m),
true);
         else
           reader.getZkClient().create(ZkStateReader.CLUSTER_PROPS, ZkStateReader.toJSON(m),CreateMode.PERSISTENT,
true);
         clusterProps = reader.getClusterProps();



Mime
View raw message