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

HTTP 503 error changes 500 in SolrCore

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.3
    • 1.4
    • None
    • None

    Description

      HTTP 503 error, e.g. exceeded limit of maxWarmingSearchers, is overwritten by the following code in SolrCore:

      SolrCore.java
      protected void setResponseHeaderValues(SolrRequestHandler handler, SolrQueryRequest req, SolrQueryResponse rsp) {
          // :
          responseHeader.add("status",rsp.getException()==null ? 0 : 500);
          responseHeader.add("QTime",qtime);
          rsp.getToLog().add("status",rsp.getException()==null ? 0 : 500);
          rsp.getToLog().add("QTime",qtime);
      

      then logged 500, not 503:

      SEVERE: org.apache.solr.common.SolrException: Error opening new searcher. exceeded limit of maxWarmingSearchers=2, try again later.
         :
      INFO: [] webapp=/solr path=/update params={} status=500 QTime=146
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            koji Koji Sekiguchi
            koji Koji Sekiguchi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment