Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11491

HttpClusterStateProvider doesn't support retrieval of cluster properties

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0
    • Fix Version/s: 7.2, 8.0
    • Component/s: None
    • Labels:
      None

      Description

      SOLR-11285 refactoring caused the folowing bug to appear when CloudSolrClient uses HttpClusterStateProvider:

      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)
      

      CLUSTERSTATUS response already contains cluster properties under "properties" key, so this simply needs to be used in HttpClusterStateProvider.

        Attachments

          Activity

            People

            • Assignee:
              ab Andrzej Bialecki
              Reporter:
              ab Andrzej Bialecki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: