Shalin Shekhar Mangar created SOLR-13685:
--------------------------------------------
Summary: Update the leader term in ZK on the condition that the
replica is still the leader
Key: SOLR-13685
URL: https://issues.apache.org/jira/browse/SOLR-13685
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Components: SolrCloud
Reporter: Shalin Shekhar Mangar
Fix For: master (9.0), 8.3
While working on SOLR-13141, I realized that the
ZkShardTerms.ensureTermIsHigher and related methods do a compare-and-set on the
terms but there is no guarantee that the leader is still the leader when the zk
update executes. This can potentially lead to race conditions during leader
transitions.
We should update the term using a zk multi-op conditional on the current
replica still being the leader. This will not change any behavior but will only
be an additional safety check.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]