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

Tsuyoshi OZAWA commented on YARN-1591:
--------------------------------------

Hi [~mitdesai], thank you for joining this JIRA! In fact, the approach you 
suggested was essentially same as YARN-1591.1.patch. 
It's insufficient to deal with the intermittent test failure, because sometimes 
the other problem can happen. It's caused by unhandled YarnRuntimeException 
from AsyncDispacher. The log at the time is as follows:
{code}
$ for i in `seq 1 100`; do mvn test -Dtest=TestResourceTrackerService | grep 
FAILURE; done

... sometimes occurs failure and output file is as follows...
2014-03-14 22:59:31,468 FATAL [AsyncDispatcher event handler] 
event.AsyncDispatcher (AsyncDispatcher.java:dispatch(180)) - Error in 
dispatcher thread
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: 
java.lang.InterruptedException
        at 
org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$SchedulerEventDispatcher.handle(ResourceManager.java:633)
        at 
org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$SchedulerEventDispatcher.handle(ResourceManager.java:539)
        at 
org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:173)
        at 
org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:106)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.InterruptedException
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1219)
        at 
java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:340)
        at 
java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:338)
        at 
org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$SchedulerEventDispatcher.handle(ResourceManager.java:631)
        ... 4 more
{code}

First patch is available at:
https://issues.apache.org/jira/secure/attachment/12633362/YARN-1591.1.patch

> TestResourceTrackerService fails randomly on trunk
> --------------------------------------------------
>
>                 Key: YARN-1591
>                 URL: https://issues.apache.org/jira/browse/YARN-1591
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Vinod Kumar Vavilapalli
>            Assignee: Tsuyoshi OZAWA
>         Attachments: YARN-1591.1.patch, YARN-1591.2.patch, YARN-1591.3.patch, 
> YARN-1591.3.patch, YARN-1591.5.patch, YARN-1591.6.patch
>
>
> As evidenced by Jenkins at 
> https://issues.apache.org/jira/browse/YARN-1041?focusedCommentId=13868621&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13868621.
> It's failing randomly on trunk on my local box too 



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

Reply via email to