You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cao Manh Dat (JIRA)" <ji...@apache.org> on 2018/07/06 03:58:00 UTC

[jira] [Commented] (SOLR-12412) Leader should give up leadership when meet some kind of exceptions

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

Cao Manh Dat commented on SOLR-12412:
-------------------------------------

Thanks [~tomasflobbe], that is a good idea.

I attached a patch for this ticket. Whenever a request gets failed we will check the {{IndexWriter.tragedy}} if there is another active replica in the same shard and the current replica is the leader (no need for handle the case when the replica is not leader since the leader will bring the replica into recovery state). It will enqueue a DELETE and ADD operation to the Overseer.

> Leader should give up leadership when meet some kind of exceptions
> ------------------------------------------------------------------
>
>                 Key: SOLR-12412
>                 URL: https://issues.apache.org/jira/browse/SOLR-12412
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Cao Manh Dat
>            Assignee: Cao Manh Dat
>            Priority: Major
>         Attachments: SOLR-12412.patch
>
>
> When a leader meets some kind of unrecoverable exception (ie: CorruptedIndexException). The shard will go into the readable state and human has to intervene. In that case, it will be the best if the leader gives up its leadership and let other replicas become the leader. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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