curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Zarfoss (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CURATOR-44) LeaderSelector does not assign leader randomly
Date Fri, 19 Jul 2013 23:10:48 GMT

     [ https://issues.apache.org/jira/browse/CURATOR-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jay Zarfoss resolved CURATOR-44.
--------------------------------

    Resolution: Fixed

Javadoc updated in 2.2.0 branch
                
> LeaderSelector does not assign leader randomly
> ----------------------------------------------
>
>                 Key: CURATOR-44
>                 URL: https://issues.apache.org/jira/browse/CURATOR-44
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Documentation, Recipes
>    Affects Versions: 2.0.1-incubating
>            Reporter: Anders Wallgren
>            Assignee: Jay Zarfoss
>             Fix For: 2.2.0-incubating
>
>
> The javadoc for LeaderSelector says leadership is assigned randomly but this does not
appear to be the case.
> A fair mutex is used so it appears that leaders are selected in the order that they attempt
to acquire the mutex.
> This probably wouldn't be much more than a documentation issue except that it tends to
concentrate leaders on one node in the cluster when each node participates in more than one
election (and assuming the node starts the LeaderSelectors right around the time the node
comes up, which is the case in our usage).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message