bq. So my question, what does happen when I'm sending index request to
replica instead of leader server?

The replica forwards the document to the leader which then distributes
to _all_ replicas, including the replica that originally forwarded the
document.

Best,
Erick

On Tue, Jun 12, 2018 at 1:31 PM, Dhutia, Devansh <ddhu...@gannett.com> wrote:
> I believe it becomes a federator and resends the request to the leader, but 
> someone else more intimately familiar can correct me.
>
> Devansh Dhutia
> Development Manager, Content Ingestion
> USA TODAY Network
>
> From: SOLR4189 <klin892...@yandex.ru>
> Reply-To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
> Date: Friday, June 8, 2018 at 6:03 AM
> To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
> Subject: Indexing to replica instead leader
>
> I'm using SOLR 6.5.1 in cloud mode with replicas. I read here
> <https://lucene.apache.org/solr/guide/7_0/shards-and-indexing-data-in-solrcloud.html<https://lucene.apache.org/solr/guide/7_0/shards-and-indexing-data-in-solrcloud.html>>
> :
>
> /When a document is sent to a Solr node for indexing, the system first
> determines which Shard that document belongs to, and then which node is
> currently hosting the leader for that shard. The document is then forwarded
> to the current leader for indexing, and the leader forwards the update to
> all of the other replicas./
>
> So my question, what does happen when I'm sending index request to replica
> server instead leader server?
>
> Replica becomes a leader for this request? Or replica becomes only federator
> that resends request to leader and then leader will resend to replica?
>
>
>
> --
> Sent from: 
> http://lucene.472066.n3.nabble.com/Solr-User-f472068.html<http://lucene.472066.n3.nabble.com/Solr-User-f472068.html>
>

Reply via email to