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

Fix Http2SolrClient's exception message when serverBaseUrl is null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 8.11.2
    • main (10.0), 9.3
    • None
    • None

    Description

      Http2SolrClient can throw a number of RemoteSolrException using the serverBaseUrl variable in the message. trouble is, this can be null, and is null for the inter node requests).

      One example I recently saw had `Error from server at null` [0]

      There are places in the Http2SolrClient that look at the 'solrRequest.getBasePath()' and use that instead of the serverBaseUrl, I think we could do the same for the exception message.

      [0]

      .... o.a.s.h.RequestHandlerBase
      org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error from server at null: parsing error => org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error from server at null: parsing error
      	at org.apache.solr.client.solrj.impl.Http2SolrClient.processErrorsAndResponse(Http2SolrClient.java:713)
      org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error from server at null: parsing error
      	at org.apache.solr.client.solrj.impl.Http2SolrClient.processErrorsAndResponse(Http2SolrClient.java:713)
      

      Attachments

        Issue Links

          Activity

            People

              krisden Kevin Risden
              stillalex Alex Deparvu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h