Varun Thacker created SOLR-8111:
-----------------------------------
Summary: Requests always pick the first shard when the collection
is present locally
Key: SOLR-8111
URL: https://issues.apache.org/jira/browse/SOLR-8111
Project: Solr
Issue Type: Bug
Reporter: Varun Thacker
Priority: Minor
Currently we always pick the first shard present locally for a request against
a collection preferring the leader.
Since we are doing this locally it doesn't even matter which replica we pick.
Picking a leader will be slightly more efficient for updates.
We should refactor {{HttpSolrCall#getCoreByCollection}} to check for leaders of
all shards before picking any other replica. Right now we just do it for the
first shard.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]