[ https://issues.apache.org/jira/browse/MAPREDUCE-3872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Nauroth updated MAPREDUCE-3872: ------------------------------------- Attachment: MAPREDUCE-3872.2.patch +1 for the patch. I'm attaching a slightly rebased version of the same code just so the patch applies cleanly to current trunk. The race condition around {{allHosts}} happens pretty easily on Windows and causes frequent failures in {{TestContainerLauncher}}. I confirmed that this patch fixes the failures on Windows and also works on Mac. > 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.2.patch, 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