You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2017/10/16 12:12:00 UTC

[jira] [Resolved] (SOLR-11491) HttpClusterStateProvider doesn't support retrieval of cluster properties

     [ https://issues.apache.org/jira/browse/SOLR-11491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrzej Bialecki  resolved SOLR-11491.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: master (8.0)
                   7.2

> HttpClusterStateProvider doesn't support retrieval of cluster properties
> ------------------------------------------------------------------------
>
>                 Key: SOLR-11491
>                 URL: https://issues.apache.org/jira/browse/SOLR-11491
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: master (8.0)
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>             Fix For: 7.2, master (8.0)
>
>
> SOLR-11285 refactoring caused the folowing bug to appear when {{CloudSolrClient}} uses {{HttpClusterStateProvider}}:
> {code}
> java.lang.UnsupportedOperationException: Fetching cluster properties not supported using the HttpClusterStateProvider. ZkClientClusterStateProvider can be used for this.
> 	at __randomizedtesting.SeedInfo.seed([53591E2E965F9457:432459E763BC94C0]:0)
> 	at org.apache.solr.client.solrj.impl.HttpClusterStateProvider.getClusterProperties(HttpClusterStateProvider.java:254)
> 	at org.apache.solr.client.solrj.impl.ClusterStateProvider.getClusterProperty(ClusterStateProvider.java:65)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1019)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:862)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:793)
> 	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:178)
> 	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:195)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClientTest.testHandlingOfStaleAlias(CloudSolrClientTest.java:226)
> {code}
> CLUSTERSTATUS response already contains cluster properties under "properties" key, so this simply needs to be used in {{HttpClusterStateProvider}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org