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

Incorrect custom task status when running on MR2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.23.0
    • None
    • mrv2
    • 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ahmed.radwan Ahmed Radwan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: