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

rejected requests during ful IndexFetch should not use 403 response code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.2, 9.0
    • None
    • None

    Description

      SOLR-12999 introduced a new behavior where Solr nodes can now know to quickly reject requests when the index is unavailable due to a full IndexFetch from the master/leader - but when this change was implemented it was done soe using the HTTP status code "403" (Forbidden) which semantically indicates a client error and carries with it the understanding that the client should not re-attempt the request ... at least not w/o modification (typically adding authentication information)

      A more semantically correct response code would be 503 (Service Unavailable) which indicates a server problem (that may be resolved at some point in the future) and clients would not be ill-behaved to try again later.

      returning 503 in this particular code path would also be more consistent with other places in the solr code based where nodes respond with "503" when they are "not currently ready for requests" (but might be soon)

      Attachments

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: