Khush Jain created SOLR-17973:
---------------------------------

             Summary: Cross Collection Join not respecting shards routing 
preference
                 Key: SOLR-17973
                 URL: https://issues.apache.org/jira/browse/SOLR-17973
             Project: Solr
          Issue Type: Bug
          Components: SolrCloud, streaming expressions
    Affects Versions: 9.8.1, 9.9, 9.8, 9.6.1, 9.7, 9.6, 9.4.1, 9.5, 9.4, 9.2.1, 
9.3, 9.1.1, 9.2, 9.1, 9.0
            Reporter: Khush Jain


Configuration:
 # Solr Cloud with Solr version 9.8
 # All collections have 4 TLOG and 2 PULL
 # Routing Override shards.preference=replica.leader:false


Cross Collection Join sends the query to all replicas (including leader). Cross 
Collection Join Query is not respecting shards routing preference 
[https://solr.apache.org/guide/solr/latest/deployment-guide/solrcloud-distributed
-requests.html#shards-preference-parameter]

It doesn't respect when joining between 2 collections with 1 shard each and 
also when joining between 2 collections with 6 shards each. When checking the 
source code for cross collection join, it uses Streaming expressions in its 
implementation. Looks 
like that does not respect routing preference 
[https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/sear
ch/join/CrossCollectionJoinQuery.java#L286]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to