hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Masatake Iwasaki (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-3705) forcemanual transitionToStandby in RM-HA automatic-failover mode should change elector state
Date Fri, 26 Jun 2015 22:39:04 GMT

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

Masatake Iwasaki updated YARN-3705:
-----------------------------------
    Attachment: YARN-3705.006.patch

bq. If we call resetLeaderElection inside the rmadmin.transitionToStandby(), it will cause
a infinite loop.

You are right. I need to make sure that resetLeaderElection is not called when EmbeddedElectorService#becomeStandby
calls transitionToStandy. Thanks for the good catch, [~xgong].

I attached 006. Though I checked that the loop is not caused by starting RM-HA manually with
patched jar, it is difficult to test that in unit test.

> forcemanual transitionToStandby in RM-HA automatic-failover mode should change elector
state
> --------------------------------------------------------------------------------------------
>
>                 Key: YARN-3705
>                 URL: https://issues.apache.org/jira/browse/YARN-3705
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Masatake Iwasaki
>            Assignee: Masatake Iwasaki
>         Attachments: YARN-3705.001.patch, YARN-3705.002.patch, YARN-3705.003.patch, YARN-3705.004.patch,
YARN-3705.005.patch, YARN-3705.006.patch
>
>
> Executing {{rmadmin -transitionToStandby --forcemanual}} in automatic-failover.enabled
mode makes ResouceManager standby while keeping the state of ActiveStandbyElector. It should
make elector to quit and rejoin in order to enable other candidates to promote, otherwise
forcemanual transition should not be allowed in automatic-failover mode in order to avoid
confusion.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message