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

PingRequestHandler - shards parameter inherited from search handler definition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 4.1
    • None
    • None
    • None
    • solr-impl 4.1-SNAPSHOT 1421496 - ncindex - 2012-12-13 14:56:25

    Description

      Included in all my cores is a PingRequestHandler named /admin/ping, which I use to enable/disable the server from the perspective of a load balancer running haproxy. The handler includes a qt parameter set to /lbcheck.

      I have a special core defined (I call it a broker) that includes the shards parameter in most of its search handler definitions. This includes /select, /lbcheck, and others.

      When the /admin/ping handler is called, the query is sent to the /lbcheck parameter as expected, which gets distributed because it includes shards. If one of those shards happens to be down, the handler will give an error response to the load balancer.

      The problem is that the PingRequestHandler seems to inherit the shards parameter from the search handler it is using, which causes the /admin/ping request itself to be distributed, which is not what I want. The individual shards are not used by the load balancer, so they always remain disabled.

      This works perfectly in 3.5.0. The official 4.0.0 release has not been tested.

      Config and log data will follow in the comments.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elyograg Shawn Heisey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: