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

HTTP 503 error changes 500 in SolrCore

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      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

        1. SOLR-1016.patch
          1 kB
          Koji Sekiguchi

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: