[ 
https://issues.apache.org/jira/browse/SOLR-11491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16205550#comment-16205550
 ] 

ASF subversion and git services commented on SOLR-11491:
--------------------------------------------------------

Commit fc88e225d29f343a3028c43a076fa58318879c48 in lucene-solr's branch 
refs/heads/master from [~ab]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=fc88e22 ]

SOLR-11491: Support retrieval of cluster properties in HttpClusterStateProvider.


> 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 
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to