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

Unhelpful message in RemoteExecutionException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.9
    • None
    • None

    Description

      Details of this exception are unusually passed here not in the message or getCause() but instead they are passed in a separate field meta.

      The problem is that in many contexts where toString() is used these details are completely ignored, which produces very confusing and incomplete messages, like this:

      org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteExecutionException: Error from server at https://127.0.0.1:59006/solr: Error in command payload
      	at __randomizedtesting.SeedInfo.seed([8AD470708D05DCDB:EF407342F1EBA057]:0)
      	at org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteExecutionException.create(BaseHttpSolrClient.java:66)
      

      I propose to add the details to the message.

      Attachments

        1. exception.patch
          0.9 kB
          Andrzej Bialecki

        Activity

          People

            ab Andrzej Bialecki
            ab Andrzej Bialecki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: