hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r641793 - in /hadoop/core/trunk: CHANGES.txt src/webapps/job/loadhistory.jsp
Date Thu, 27 Mar 2008 12:35:30 GMT
Author: ddas
Date: Thu Mar 27 05:35:25 2008
New Revision: 641793

URL: http://svn.apache.org/viewvc?rev=641793&view=rev
Log:
HADOOP-3087. Fixes a problem to do with refreshing of loadHistory.jsp. Contributed by Amareshwari
Sriramadasu.

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

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=641793&r1=641792&r2=641793&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Mar 27 05:35:25 2008
@@ -383,6 +383,9 @@
     HADOOP-3073. close() on SocketInputStream or SocketOutputStream should
     close the underlying channel. (rangadi)
 
+    HADOOP-3087. Fixes a problem to do with refreshing of loadHistory.jsp.
+    (Amareshwari Sriramadasu via ddas)
+
 Release 0.16.2 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/src/webapps/job/loadhistory.jsp
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/webapps/job/loadhistory.jsp?rev=641793&r1=641792&r2=641793&view=diff
==============================================================================
--- hadoop/core/trunk/src/webapps/job/loadhistory.jsp (original)
+++ hadoop/core/trunk/src/webapps/job/loadhistory.jsp Thu Mar 27 05:35:25 2008
@@ -20,7 +20,13 @@
     String jobId =  (String)request.getParameter("jobid");
     JobHistory.JobInfo job = (JobHistory.JobInfo)
                                request.getSession().getAttribute("job");
-    if (null != job && (!jobId.equals(job.get(Keys.JOBID)))) {
+    // if session attribute of JobInfo exists and is of different job's,
+    // then remove the attribute
+    // if the job has not yet finished, remove the attribute sothat it 
+    // gets refreshed.
+    if (null != job && 
+       (!jobId.equals(job.get(Keys.JOBID)) 
+         || job.get(Keys.JOB_STATUS) == "")) {
       // remove jobInfo from session, keep only one job in session at a time
       request.getSession().removeAttribute("job"); 
       job = null ; 



Mime
View raw message