On 6/8/2018 3:56 AM, SOLR4189 wrote:
> /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,
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:3
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
Reply-To: "solr-user@lucene.apache.org"
Date: Friday, June 8, 2018 at 6:03 AM
Hi,
Indexing request will always go to leader first. If you are using Solrj and if
you initialise it with ZK, it will be aware which node has leader for which
document and will send it there. Otherwise, there is a chance of this
additional roundtrip replica->leader->replica.
HTH,
Emir
--
Monito