Mikhail Khludnev commented on SOLR-5859:

[~noble.paul], I want to clarify 
        //do this in a separate thread because any wait is interrupted in this 
main thread
        new Thread(this::checkIfIamStillLeader, "OverseerExitThread").start();
Can't we clean interrupt flag with {{Thread.interrupted()}} and avoid spawning 
new thread ?

> Harden the Overseer restart mechanism
> -------------------------------------
>                 Key: SOLR-5859
>                 URL: https://issues.apache.org/jira/browse/SOLR-5859
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>            Priority: Major
>             Fix For: 4.8, 6.0
>         Attachments: SOLR-5859.patch, SOLR-5859.patch, SOLR-5859.patch, 
> SOLR-5859.patch
> SOLR-5476 depends on Overseer restart.The current strategy is to remove the 
> zk node for leader election and wait for STATUS_UPDATE_DELAY +100 ms and  
> start the new overseer.
> Though overseer ops are short running,  it is not a 100% foolproof strategy 
> because if an operation takes longer than the wait period there can be race 
> condition. 

This message was sent by Atlassian JIRA

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

Reply via email to