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

Add header to SearchHandler to indicate whether solr is connection to zk

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently solr update requests error out if a zookeeper check fails, however SearchHandler does not do these checks. As a result, if a request is sent to a node which should be part of a SolrCloud but is not connected to zookeeper and thinks that its Active, it's possible the response is composed of stale data.

      The purpose of this header is to allow the client to decide whether or not the result data should be considered valid.

      This patch also returns the zkConnected header in the ping handler to allow external health checks to use this information.

      See SOLR-8599 for an example of when this situation can arise.

        Attachments

          Activity

            People

            • Assignee:
              dpgove Dennis Gove
              Reporter:
              k317h Keith Laban
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: