You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by dd...@apache.org on 2008/12/30 13:07:04 UTC

svn commit: r730110 - in /hadoop/core/trunk: CHANGES.txt src/mapred/org/apache/hadoop/mapred/JobInProgress.java

Author: ddas
Date: Tue Dec 30 04:07:04 2008
New Revision: 730110

URL: http://svn.apache.org/viewvc?rev=730110&view=rev
Log:
HADOOP-4956. Creates TaskStatus for failed tasks with an empty Counters object instead of null. Contributed by Devaraj Das.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobInProgress.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=730110&r1=730109&r2=730110&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Tue Dec 30 04:07:04 2008
@@ -517,6 +517,9 @@
 
     HADOOP-4896. HDFS Fsck does not load HDFS configuration. (Raghu Angadi)
 
+    HADOOP-4956. Creates TaskStatus for failed tasks with an empty Counters 
+    object instead of null. (ddas)
+
 Release 0.19.1 - Unreleased
 
   IMPROVEMENTS

Modified: hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobInProgress.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobInProgress.java?rev=730110&r1=730109&r2=730110&view=diff
==============================================================================
--- hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobInProgress.java (original)
+++ hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobInProgress.java Tue Dec 30 04:07:04 2008
@@ -2340,7 +2340,7 @@
                                                     reason,
                                                     reason,
                                                     trackerName, phase,
-                                                    null);
+                                                    new Counters());
     status.setFinishTime(System.currentTimeMillis());
     updateTaskStatus(tip, status, metrics);
     JobHistory.Task.logFailed(tip.getTIPId(),