You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2013/05/13 22:21:18 UTC
[jira] [Updated] (HADOOP-9220) Unnecessary transition to standby in
ActiveStandbyElector
[ https://issues.apache.org/jira/browse/HADOOP-9220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Lipcon updated HADOOP-9220:
--------------------------------
Attachment: hadoop-9220.txt
Hey Tom. I think you can just use the {{wantsToBeInElection}} variable here rather than going back to ZK to check the current state of the znode (which I fear might be race-prone). How does this patch look to you? It seems to pass the test you added.
> Unnecessary transition to standby in ActiveStandbyElector
> ---------------------------------------------------------
>
> Key: HADOOP-9220
> URL: https://issues.apache.org/jira/browse/HADOOP-9220
> Project: Hadoop Common
> Issue Type: Bug
> Components: ha
> Reporter: Tom White
> Assignee: Tom White
> Priority: Critical
> Attachments: HADOOP-9220.patch, HADOOP-9220.patch, hadoop-9220.txt
>
>
> When performing a manual failover from one HA node to a second, under some circumstances the second node will transition from standby -> active -> standby -> active. This is with automatic failover enabled, so there is a ZK cluster doing leader election.
--
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