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

Make post.jar report back detailed error in case of 400 responses

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.7
    • 4.9, 6.0
    • scripts and tools
    • None

    Description

      Currently post.jar does not print detailed error message that is encountered during indexing. In certain use cases, it's helpful to see the error message so that clients can take appropriate actions.

      In 4.7, here's what gets shown if there is an error during indexing:

      SimplePostTool: WARNING: Solr returned an error #400 Bad Request
      SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:8983/solr/update

      It would be helpful to print out the "msg" that is returned from Solr.

      Attachments

        1. solr-5940.patch
          4 kB
          Uwe Schindler
        2. solr-5940.patch
          2 kB
          Shalin Shekhar Mangar
        3. solr-5940.patch
          2 kB
          Uwe Schindler
        4. solr-5940.patch
          1 kB
          Shalin Shekhar Mangar
        5. solr-5940.patch
          1 kB
          Sameer Maggon

        Activity

          People

            uschindler Uwe Schindler
            maggon Sameer Maggon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: