lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject lucene-solr:branch_7x: SOLR-11491: Fix a ClassCastException.
Date Tue, 17 Oct 2017 17:16:51 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x b2aa4a0a4 -> 5db637b6c


SOLR-11491: Fix a ClassCastException.


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

Branch: refs/heads/branch_7x
Commit: 5db637b6c89c49b3faa3a2d254ddeae61944fb7e
Parents: b2aa4a0
Author: Andrzej Bialecki <ab@apache.org>
Authored: Tue Oct 17 19:15:33 2017 +0200
Committer: Andrzej Bialecki <ab@apache.org>
Committed: Tue Oct 17 19:16:43 2017 +0200

----------------------------------------------------------------------
 .../apache/solr/client/solrj/impl/HttpClusterStateProvider.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5db637b6/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpClusterStateProvider.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpClusterStateProvider.java
b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpClusterStateProvider.java
index 06518f1..54f3fae 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpClusterStateProvider.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpClusterStateProvider.java
@@ -139,9 +139,9 @@ public class HttpClusterStateProvider implements ClusterStateProvider
{
     liveNodesTimestamp = System.nanoTime();
     ClusterState cs = ClusterState.load(znodeVersion, collectionsMap, liveNodes, ZkStateReader.CLUSTER_STATE);
     if (clusterProperties != null) {
-      NamedList properties = (NamedList) cluster.get("properties");
+      Map<String, Object> properties = (Map<String, Object>) cluster.get("properties");
       if (properties != null) {
-        clusterProperties.putAll(properties.asMap(10));
+        clusterProperties.putAll(properties);
       }
     }
     return cs;


Mime
View raw message