Explorar o código

HADOOP-770. Fix jobtracker web interface to display, on restart, jobs that were running when it was last stopped. Contributed by Sanjay.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@483768 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting %!s(int64=18) %!d(string=hai) anos
pai
achega
1dc471d65d
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 4 0
      CHANGES.txt
  2. 1 1
      src/webapps/job/jobhistory.jsp

+ 4 - 0
CHANGES.txt

@@ -36,6 +36,10 @@ Trunk (unreleased changes)
 10. HADOOP-756. Add new dfsadmin option to wait for filesystem to be
     operational.  (Dhruba Borthakur via cutting)
 
+11. HADOOP-770. Fix jobtracker web interface to display, on restart,
+    jobs that were running when it was last stopped.
+    (Sanjay Dahiya via cutting)
+
 
 Release 0.9.1 - 2006-12-06
 

+ 1 - 1
src/webapps/job/jobhistory.jsp

@@ -70,7 +70,7 @@
 	  for( JobInfo job : jobs.values() ) {
 		if( null != status && status.equals(job.get(Keys.JOB_STATUS)) ) {
 		  printJob(trackerid, job, out); 
-		}else if( status == null && job.get(Keys.JOB_STATUS) == null ) {
+		}else if( status == null && job.get(Keys.JOB_STATUS).length() == 0 ) {
 		  printJob(trackerid, job, out); 
 		}
 	  }