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

Mark Miller commented on SOLR-5833:
-----------------------------------

If I remember right, the reason the old one should stop is that we are 
overwriting who the overseer is in ZK - so the old Oveerseer should have the 
while loops in it's threads fail - eventually - when it checks zk and realizes 
its not the registered leader. The problem is, there is no promise when and 
lots of room for overlap - as test fails have shown and you have seen.

I also don't really like the 'clever' abuse of the election system - it all 
checks out, but it's not very straight forward and I worry about adding a lot 
of stuff like that and what it will mean to build on this stuff in the future.

I really don't like counting on this at all - it's not very good for future 
Overseer extensibility and it's not really possible to harden fully.

> OVERSEEROP aka ZkController.forceOverSeer doesn't work: old overser keeps 
> running
> ---------------------------------------------------------------------------------
>
>                 Key: SOLR-5833
>                 URL: https://issues.apache.org/jira/browse/SOLR-5833
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>
> While working on SOLR-5823, i tried to write a test using 
> ZkController.forceOverSeer() to force the overseer to change from one node to 
> another (to prove my code could properly detect the new overseer)
> The test failed spectacuarly, because after calling forceOverSeer() the end 
> result was that Overseer obejcts on both ZkControllers wound up being active.
> I'm not well versed on the leader/overseer election stuff -- but from what i 
> can tell poking arround in the code of forceOverSeer(), compared to the code 
> involved in OversearchElectionContext, it seems like forceOverSeer() doesn't 
> relaly do anything to ensure that the "old" overseer ever "stops".  miller's 
> comments in SOLR-5823 seem to re-affirm that.
> We should make forceOverSeer() work safely, or we should eliminate it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to