Shalin Shekhar Mangar created SOLR-9594:
-------------------------------------------

             Summary: Query requests to one shard collections can switch to 
two-phase distributed search if they hit a node in recovery
                 Key: SOLR-9594
                 URL: https://issues.apache.org/jira/browse/SOLR-9594
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: search, SolrCloud
    Affects Versions: 6.2.1, 5.5.3, 4.10.4
            Reporter: Shalin Shekhar Mangar
             Fix For: 6.3, master (7.0)


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:
# Forward the request to some other node entirely or
# Make a call with distrib=false to another node



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to