Solr
  1. Solr
  2. SOLR-1016

HTTP 503 error changes 500 in SolrCore

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial 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
      
      1. SOLR-1016.patch
        1 kB
        Koji Sekiguchi

        Activity

        Hide
        Koji Sekiguchi added a comment -

        I'll commit the patch shortly.

        Show
        Koji Sekiguchi added a comment - I'll commit the patch shortly.
        Hide
        Koji Sekiguchi added a comment -

        Committed revision 743228.

        Show
        Koji Sekiguchi added a comment - Committed revision 743228.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for Solr 1.4

        Show
        Grant Ingersoll added a comment - Bulk close for Solr 1.4

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development