Description
solrj CloudSolrClient: add directUpdatesToLeadersOnly support
(Marvin Justice, Christine Poerschke)
Proposed change:
- Addition of a directUpdatesToLeadersOnly flag to allow clients to request that direct updates be sent to the shard leaders and only to the shard leaders.
Motivation:
- In a scenario where there is temporarily no shard leader the update request will 'fail fast' allowing the client to handle retry logic.
Related tickets:
SOLR-6312concerns the ((currently) no longer used) updatesToLeaders flag. The updatesToLeaders logic however appears to be slightly different from the proposed directUpdatesToLeadersOnly logic: updatesToLeaders indicates that sending to leaders is preferred but not mandatory whereas directUpdatesToLeadersOnly mandates sending to leaders only.
Attachments
Attachments
Issue Links
- is related to
-
SOLR-6312 CloudSolrServer doesn't honor updatesToLeaders constructor argument
- Closed
- relates to
-
SOLR-9512 CloudSolrClient's cluster state cache can break direct updates to leaders
- Resolved
-
SOLR-11507 simplify and extend SolrTestCaseJ4.CloudSolrClientBuilder randomisation
- Closed
-
SOLR-9464 change CloudSolrClient[Builder].directUpdatesToLeadersOnly default (to true)
- Open
-
SOLR-9067 solrj CloudSolrClient's updatesToLeaders flag is never used
- Closed