[
https://issues.apache.org/jira/browse/SOLR-13685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Drob updated SOLR-13685:
-----------------------------
Fix Version/s: (was: 8.3)
> 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
> Components: SolrCloud
> Reporter: Shalin Shekhar Mangar
> Priority: Major
> Fix For: 9.0
>
>
> 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
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]