Author: ddas
Date: Tue Jan 20 22:52:15 2009
New Revision: 736247
URL: http://svn.apache.org/viewvc?rev=736247&view=rev
Log:
Merge -r 736242:736243 from trunk onto 0.19 branch. Fixes HADOOP-4983.
Modified:
hadoop/core/branches/branch-0.19/CHANGES.txt
hadoop/core/branches/branch-0.19/src/mapred/org/apache/hadoop/mapred/TaskInProgress.java
Modified: hadoop/core/branches/branch-0.19/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.19/CHANGES.txt?rev=736247&r1=736246&r2=736247&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.19/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.19/CHANGES.txt Tue Jan 20 22:52:15 2009
@@ -1157,6 +1157,9 @@
HADOOP-4910. NameNode should exclude replicas when choosing excessive
replicas to delete to avoid data lose. (hairong)
+ HADOOP-4983. Fixes a problem in updating Counters in the status reporting.
+ (Amareshwari Sriramadasu via ddas)
+
Release 0.18.2 - 2008-11-03
BUG FIXES
Modified:
hadoop/core/branches/branch-0.19/src/mapred/org/apache/hadoop/mapred/TaskInProgress.java
URL:
http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.19/src/mapred/org/apache/hadoop/mapred/TaskInProgress.java?rev=736247&r1=736246&r2=736247&view=diff
==============================================================================
---
hadoop/core/branches/branch-0.19/src/mapred/org/apache/hadoop/mapred/TaskInProgress.java
(original)
+++
hadoop/core/branches/branch-0.19/src/mapred/org/apache/hadoop/mapred/TaskInProgress.java
Tue Jan 20 22:52:15 2009
@@ -775,7 +775,11 @@
if (status.getProgress() >= bestProgress) {
bestProgress = status.getProgress();
bestState = status.getStateString();
- bestCounters = status.getCounters();
+ if (status.getIncludeCounters()) {
+ bestCounters = status.getCounters();
+ } else {
+ bestCounters = this.counters;
+ }
}
}
}