Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5684

TestMRJobs.testFailingMapper occasionally fails

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      TestMRJobs is occasionally failing with the error:

      -------------------------------------------------------------------------------
      Test set: org.apache.hadoop.mapreduce.v2.TestMRJobs
      -------------------------------------------------------------------------------
      Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 323.503 sec <<< FAILURE! - in org.apache.hadoop.mapreduce.v2.TestMRJobs
      testFailingMapper(org.apache.hadoop.mapreduce.v2.TestMRJobs)  Time elapsed: 15.657 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<TIPFAILED> but was:<FAILED>
              at org.junit.Assert.fail(Assert.java:93)
              at org.junit.Assert.failNotEquals(Assert.java:647)
              at org.junit.Assert.assertEquals(Assert.java:128)
              at org.junit.Assert.assertEquals(Assert.java:147)
              at org.apache.hadoop.mapreduce.v2.TestMRJobs.testFailingMapper(TestMRJobs.java:313)
      

        Activity

        Hide
        Liyin Liang added a comment -

        This patch changes the assert to accept both TIPFAILED and FAILED status. verifyFailingMapperCounters(job) only if status is TIPFAILED.

        Show
        Liyin Liang added a comment - This patch changes the assert to accept both TIPFAILED and FAILED status. verifyFailingMapperCounters(job) only if status is TIPFAILED.
        Hide
        Jinghui Wang added a comment -

        Seeing the same issue.

        Show
        Jinghui Wang added a comment - Seeing the same issue.
        Hide
        Liyin Liang added a comment -

        The failure happens when job.getTaskCompletionEvents(0, 2) is redirected to history server. In the .jhist file all the failed attempts' status is FAILED.

        Show
        Liyin Liang added a comment - The failure happens when job.getTaskCompletionEvents(0, 2) is redirected to history server. In the .jhist file all the failed attempts' status is FAILED.

          People

          • Assignee:
            Unassigned
            Reporter:
            Liyin Liang
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development