hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsuyoshi OZAWA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1929) DeadLock in RM when automatic failover is enabled.
Date Mon, 14 Apr 2014 15:46:19 GMT

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

Tsuyoshi OZAWA commented on YARN-1929:
--------------------------------------

> Thinking about the best way to write a unit test for this to avoid regressions in the
future.

Your approach looks reasonable for me. In addition to overriding EES#becomeActive, we can
override synchronized  methods or change their behaviour(CompositeService#stop,  AS#transitionToActive,
RM#transitionToActive) to sleep with synchronization(a bit different, but like TestRetryCacheWithHA#DummyRetryInvocationHandler).
Then we can reproduce deadlock situation step by step in test cases.

IMHO, we shouldn't touch ASE, because it's also used in NameNode HA.

> DeadLock in RM when automatic failover is enabled.
> --------------------------------------------------
>
>                 Key: YARN-1929
>                 URL: https://issues.apache.org/jira/browse/YARN-1929
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>         Environment: Yarn HA cluster
>            Reporter: Rohith
>            Assignee: Karthik Kambatla
>            Priority: Blocker
>         Attachments: yarn-1929-1.patch
>
>
> Dead lock detected  in RM when automatic failover is enabled.
> {noformat}
> Found one Java-level deadlock:
> =============================
> "Thread-2":
>   waiting to lock monitor 0x00007fb514303cf0 (object 0x00000000ef153fd0, a org.apache.hadoop.ha.ActiveStandbyElector),
>   which is held by "main-EventThread"
> "main-EventThread":
>   waiting to lock monitor 0x00007fb514750a48 (object 0x00000000ef154020, a org.apache.hadoop.yarn.server.resourcemanager.EmbeddedElectorService),
>   which is held by "Thread-2"
> {noformat}



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

Mime
View raw message