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

Query requests to one shard collections can switch to two-phase distributed search if they hit a node in recovery

    XMLWordPrintableJSON

Details

    Description

      All search requests in SolrCloud are distributed two-phase requests by default but Solr short-circuits it to the local replica/core if the collection has numShards=1 and the local replica/core is active.

      But if the request happens to land on a replica which isn't active, the short-circuiting doesn't happen and the local replica/core which isn't active becomes the aggregator for a proper two-phase distributed request. If the search components involved in the request do not support distributed search then you can have weird results in such cases. This behavior is very surprising because most of the times queries are short circuited and behave as if they were non-distrib queries.

      We could either:

      1. Forward the request to some other node entirely or
      2. Make a call with distrib=false to another node

      Attachments

        Activity

          People

            Unassigned Unassigned
            shalin Shalin Shekhar Mangar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: