hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik Kambatla (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-3872) event handling races in ContainerLauncherImpl and TestContainerLauncher
Date Sat, 05 Jan 2013 00:45:10 GMT

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

Karthik Kambatla commented on MAPREDUCE-3872:
---------------------------------------------

As handle() is not executed atomically, the eventQueue might be updated and the event dequeued
in run() before allNodes is updated. This patch fixes that issue.

+1
                
> event handling races in ContainerLauncherImpl and TestContainerLauncher
> -----------------------------------------------------------------------
>
>                 Key: MAPREDUCE-3872
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3872
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: client, mrv2
>    Affects Versions: 0.23.1
>            Reporter: Patrick Hunt
>            Assignee: Robert Kanter
>         Attachments: MAPREDUCE-3872.patch, MAPREDUCE-3872.patch, MAPREDUCE-3872.patch
>
>
> TestContainerLauncher is failing intermittently for me.
> {noformat}
> junit.framework.AssertionFailedError: Expected: <null> but was: Expected 22 but
found 21
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at junit.framework.Assert.assertNull(Assert.java:233)
> 	at junit.framework.Assert.assertNull(Assert.java:226)
> 	at org.apache.hadoop.mapreduce.v2.app.launcher.TestContainerLauncher.testPoolSize(TestContainerLauncher.java:117)
> {noformat}
> Patch momentarily.

--
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

Mime
View raw message