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

Incorrect custom task status when running on MR2

    Details

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

      Description

      To reproduce this problem:

      1- In your mapper setup() set:

      context.setStatus("myStatus")
      

      2- When the job finishes:

       
      TaskReport[] reports = job.getTaskReports(TaskType.MAP);
      assertEquals("myStatus", reports[0].getState());
      

      The returned status from reports[0].getState() is "SUCCEEDED" as opposed to the expected "myStatus" value.

      This exact code work fine on MR1. I saw this issue when tried running the TestTaskContext test cases on MR2.

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Ahmed Radwan
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:

                Development