[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896560#action_12896560
 ] 

Tom White commented on MAPREDUCE-1920:
--------------------------------------

Thanks for taking a look, Amareshwari. With the first patch I get the following 
failure for TestTrackerReservation:

{noformat}
Testcase: testTaskTrackerReservation took 0.431 sec
        Caused an ERROR
null
java.lang.NullPointerException
        at org.apache.hadoop.io.Text.encode(Text.java:396)
        at org.apache.hadoop.io.Text.encode(Text.java:377)
        at org.apache.hadoop.io.Text.writeString(Text.java:417)
        at org.apache.hadoop.mapreduce.JobStatus.write(JobStatus.java:339)
        at 
org.apache.hadoop.mapred.CompletedJobStatusStore.store(CompletedJobStatusStore.java:178)
        at 
org.apache.hadoop.mapred.JobTracker.storeCompletedJob(JobTracker.java:3427)
        at 
org.apache.hadoop.mapred.JobInProgress.garbageCollect(JobInProgress.java:3344)
        at 
org.apache.hadoop.mapred.JobInProgress.jobComplete(JobInProgress.java:2889)
        at 
org.apache.hadoop.mapred.JobInProgress.completedTask(JobInProgress.java:2771)
        at 
org.apache.hadoop.mapred.JobInProgress.updateTaskStatus(JobInProgress.java:1231)
        at 
org.apache.hadoop.mapred.FakeObjectUtilities$FakeJobInProgress.finishTask(FakeObjectUtilities.java:186)
        at 
org.apache.hadoop.mapred.TestTrackerReservation.testTaskTrackerReservation(TestTrackerReservation.java:138)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
        at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}

This is caused by a null user name. The second patch sets the user for the job, 
and passes for me.

What failure are you getting with the second patch?

> Job.getCounters() returns null when using a cluster
> ---------------------------------------------------
>
>                 Key: MAPREDUCE-1920
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1920
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 0.21.0
>            Reporter: Aaron Kimball
>            Assignee: Tom White
>            Priority: Critical
>         Attachments: MAPREDUCE-1920.patch, MAPREDUCE-1920.patch
>
>
> Calling Job.getCounters() after the job has completed (successfully) returns 
> null.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to