You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/07/20 22:20:38 UTC

[jira] [Commented] (SOLR-6261) Run checkIfIamLeader in a separate thread

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

ASF GitHub Bot commented on SOLR-6261:
--------------------------------------

GitHub user andyetitmoves opened a pull request:

    https://github.com/apache/lucene-solr/pull/66

    Run checkIfIamLeader in a separate thread

    Initial patch for [SOLR-6261](https://issues.apache.org/jira/browse/SOLR-6261) to run `checkIfIAmLeader` in a separate thread, passes all tests.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bloomberg/lucene-solr trunk-parallel-leader

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/66.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #66
    
----
commit 6b0c98c6462a05c24dbf111450c14e53a447b6d3
Author: Ramkumar Aiyengar <an...@gmail.com>
Date:   2014-07-20T19:08:58Z

    Run checkIfIamLeader in a separate thread

----


> Run checkIfIamLeader in a separate thread
> -----------------------------------------
>
>                 Key: SOLR-6261
>                 URL: https://issues.apache.org/jira/browse/SOLR-6261
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>    Affects Versions: 4.9
>            Reporter: Ramkumar Aiyengar
>            Priority: Minor
>
> Currently checking for leadership (due to the leader's ephemeral node going away) happens in ZK's event thread. If there are many cores and all of them are due leadership, then they would have to serially go through the two-way sync and leadership takeover.
> For tens of cores, this could mean 30-40s without leadership before the last in the list even gets to start the leadership process. If the leadership process happens in a separate thread, then the cores could all take over in parallel.



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

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