lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [12/50] [abbrv] lucene-solr:jira/solr-11072: SOLR-11491: Fix a ClassCastException.
Date Thu, 19 Oct 2017 08:31:00 GMT
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/a91af347
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a91af347
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a91af347

Branch: refs/heads/jira/solr-11072
Commit: a91af34705a4255d72c8b9ba08c362645b4ab163
Parents: 60d5e22
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:15:59 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/a91af347/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