Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5155

Race condition in test case TestFetchFailure cause it to fail

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3-alpha
    • Fix Version/s: 3.0.0-alpha2
    • Component/s: test
    • Labels:
      None
    • Environment:

      Suse x86_64 GNU/Linux
      Java(TM) SE Runtime Environment (build 1.6.0_32-b05

    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      I run into this once: testFetchFailureWithRecovery(org.apache.hadoop.mapreduce.v2.app.TestFetchFailure): Num completion events not correct expected:<1> but was:<0>

      There is a race condition between job.getTaskAttemptCompletionEvents and dealing with JOB_TASK_ATTEMPT_COMPLETED event.
      If job.getTaskAttemptCompletionEvents invoked because of task in SUCCEEDED state ,but before JOB_TASK_ATTEMPT_COMPLETED event scheduled,the test case will fail.

        Attachments

          Activity

            People

            • Assignee:
              haibochen Haibo Chen
              Reporter:
              nemon Nemon Lou
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: