hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Graves (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-4062) AM Launcher thread can hang forever
Date Mon, 02 Apr 2012 21:15:46 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-4062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244648#comment-13244648

Thomas Graves commented on MAPREDUCE-4062:

I'll see if I can add something to TestContainerLauncher also. It is tested indirectly via
TestContainerLaunchRPC. I figured that one catches both RM launch of AM as well as AM launching

I also tested things manually on a two node cluster by added sleep into the ContainerManager
to simulate a hang.  I verified that it properly errors out in both the RM launching AM and
AM launching containers cases. In all cases it properly retried when the retry values were
> 1.
> AM Launcher thread can hang forever
> -----------------------------------
>                 Key: MAPREDUCE-4062
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4062
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: 0.23.2
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>         Attachments: MAPREDUCE-4062.patch
> We saw an instance where the RM stopped launch Application masters.  We found that the
launcher thread was hung because something weird/bad happened to the NM node. Currently there
is only 1 launcher thread (jira 4061 to fix that). We need this to not happen.  Even once
we increase the number of threads  to > 1 if that many nodes go bad the RM would be stuck.
 Note that this was stuck like this for approximately 9 hours.
> Stack trace on hung AM launcher:
> "pool-1-thread-1" prio=10 tid=0x000000004343e800 nid=0x3a4c in Object.wait()
> [0x000000004fad2000]
>    java.lang.Thread.State: WAITING (on object monitor)
>     at java.lang.Object.wait(Native Method)
>     at java.lang.Object.wait(Object.java:485)
>     at org.apache.hadoop.ipc.Client.call(Client.java:1076)
>     - locked <0x00002aab05a4f3f0> (a org.apache.hadoop.ipc.Client$Call)
>     at
> org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine$Invoker.invoke(ProtoOverHadoopRpcEngine.java:135)
>     at $Proxy76.startContainer(Unknown Source)
>     at
> org.apache.hadoop.yarn.api.impl.pb.client.ContainerManagerPBClientImpl.startContainer(ContainerManagerPBClientImpl.java:87)
>     at
> org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.launch(AMLauncher.java:118)
>     at
> org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.run(AMLauncher.java:265)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:619)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message