[ https://issues.apache.org/jira/browse/SOLR-5859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16437946#comment-16437946 ]
Mikhail Khludnev commented on SOLR-5859: ---------------------------------------- [~noble.paul], I want to clarify https://github.com/apache/lucene-solr/commit/3fd292234166105f96fcb5acd3999c9c2abff737#diff-9ed614eee66b9e685d73446b775dc043R287 {quote} //do this in a separate thread because any wait is interrupted in this main thread new Thread(this::checkIfIamStillLeader, "OverseerExitThread").start(); {quote} 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 (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org