You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Varun Thacker (JIRA)" <ji...@apache.org> on 2015/10/01 12:40:26 UTC
[jira] [Created] (SOLR-8111) Requests always pick the first shard
when the collection is present locally
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org