[ 
https://issues.apache.org/jira/browse/SOLR-10276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16070340#comment-16070340
 ] 

Scott Blum commented on SOLR-10276:
-----------------------------------

Please add a patch!  This is super useful operationally.

> Update ZK leader election so that leader notices if its leadership is revoked
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-10276
>                 URL: https://issues.apache.org/jira/browse/SOLR-10276
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 5.5.3
>            Reporter: Joshua Humphries
>            Assignee: Scott Blum
>            Priority: Minor
>              Labels: leader, zookeeper
>
> When we have an issue with a solr node, it would be nice to revoke its 
> leadership of one or more shard or to revoke its role as overseer without 
> actually restarting the node. (Restarting the node tends to spam the overseer 
> queue since we have a very large number of cores per node.)
> Operationally, it would be nice if one could just delete the leader's 
> election node (e.g. its ephemeral sequential node that indicates it as 
> current leader) and to have it notice the change and stop behaving as leader.
> Currently, once a node becomes leader, it isn't watching ZK for any changes 
> that could revoke its leadership. I am proposing that, upon being elected 
> leader, it use a ZK watch to monitor its own election node. If its own 
> election node is deleted, it then relinquishes leadership (e.g. calls 
> ElectionContext#cancelElection() and then re-joins the election).
> I have a patch with tests that I can contribute.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to