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

Update requests to SolrCloud can return status value of -1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 9.4
    • 9.6
    • SolrCloud
    • None

    Description

      It is possible for SolrCloud to return a HTTP status code of -1 for an update request that is distributed, if all of the distributed commands fail with an exception that is not a SolrException (e.g. an IOException).

       

      SorlCmdDistributor.SolrError sets a default value of -1 for the status code response for the distributed request. If a SolrException is encountered, the status code is replaced with the code from the response. If any other exception type is raised, the status code remains as -1.

      DistributedUpdatesAsyncException analyzes the errors from all distributed commands to determine the overall status code for the response. If all status codes equal -1, then -1 is returned as the status.

       

      The code should correspond to a valid HTTP status code, in this case, 500.
       
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pmcarthur Paul McArthur
              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 - 20m
                  20m