hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r678196 - in /hadoop/core/trunk: CHANGES.txt src/webapps/job/jobtasks.jsp
Date Sat, 19 Jul 2008 17:58:39 GMT
Author: omalley
Date: Sat Jul 19 10:58:39 2008
New Revision: 678196

URL: http://svn.apache.org/viewvc?rev=678196&view=rev
Log:
HADOOP-3643. Filter out completed tasks when asking for running tasks in
the JobTracker web/ui. Contributed by Amar Kamat.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/webapps/job/jobtasks.jsp

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=678196&r1=678195&r2=678196&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Sat Jul 19 10:58:39 2008
@@ -140,6 +140,9 @@
     HADOOP-3723. The flags to the libhdfs.create call can be treated as
     a bitmask. (Pete Wyckoff via dhruba)
 
+    HADOOP-3643. Filter out completed tasks when asking for running tasks in
+    the JobTracker web/ui. (Amar Kamat via omalley)
+
 Release 0.18.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/trunk/src/webapps/job/jobtasks.jsp
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/webapps/job/jobtasks.jsp?rev=678196&r1=678195&r2=678196&view=diff
==============================================================================
--- hadoop/core/trunk/src/webapps/job/jobtasks.jsp (original)
+++ hadoop/core/trunk/src/webapps/job/jobtasks.jsp Sat Jul 19 10:58:39 2008
@@ -66,7 +66,8 @@
     List<TaskReport> filteredReports = new ArrayList<TaskReport>();
     for (int i = 0; i < tasks.length; ++i) {
       if (("completed".equals(state) && tasks[i].isComplete()) 
-          || ("running".equals(state) && tasks[i].isRunning()) 
+          || ("running".equals(state) && tasks[i].isRunning() 
+              && !tasks[i].isComplete()) 
           || ("killed".equals(state) && tasks[i].wasKilled()) 
           || ("pending".equals(state)  && !(tasks[i].isComplete() 
                                             || tasks[i].isRunning() 



Mime
View raw message