Details

Description

I occasionally get a failure like this on org.apache.hadoop.mapred.TestClusterMRNotification.testMR

junit.framework.AssertionFailedError: expected:<6> but was:<4>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:283)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:195)
at junit.framework.Assert.assertEquals(Assert.java:201)
at org.apache.hadoop.mapred.NotificationTestCase.testMR(NotificationTestCase.java:184)
...

Robert Kanter
added a comment - 16/Jan/13 00:38 NotificationTestCase is abstract; its the parent class for the TestClusterMRNotification and TestLocalMRNotification tests. If you run those two test classes, it should work.

Alejandro Abdelnur
added a comment - 15/Jan/13 21:13 The the following to variables should be 'volatile':
public static int counter = 0;
public static int failureCounter = 0;
Instead looping/sleeping 1000ms I'do it for 50ms, as this is done 4 times we are cutting an avg of 2 secs (max 4secs) the test.