Incorrect custom task status when running on MR2
------------------------------------------------
Key: MAPREDUCE-3409
URL: https://issues.apache.org/jira/browse/MAPREDUCE-3409
Project: Hadoop Map/Reduce
Issue Type: Bug
Components: mrv2
Affects Versions: 0.23.0
Reporter: Ahmed Radwan
To reproduce this problem:
1- In your mapper setup() set:
{code}
context.setStatus("myStatus")
{code}
2- When the job finishes:
{code}
TaskReport[] reports = job.getTaskReports(TaskType.MAP);
assertEquals("myStatus", reports[0].getState());
{code}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira