hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r431693 - in /lucene/hadoop/trunk: CHANGES.txt src/webapps/task/getMapOutput.jsp
Date Tue, 15 Aug 2006 20:26:47 GMT
Author: cutting
Date: Tue Aug 15 13:26:47 2006
New Revision: 431693

URL: http://svn.apache.org/viewvc?rev=431693&view=rev
Log:
HADOOP-436.  Fix an error-handling bug in the web ui.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/webapps/task/getMapOutput.jsp

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=431693&r1=431692&r2=431693&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Aug 15 13:26:47 2006
@@ -34,6 +34,9 @@
     must now define.  Also, the values returned by TextInputFormat are
     no longer of class UTF8, but now of class Text.
 
+ 8. HADOOP-436.  Fix an error-handling bug in the web ui.
+    (Devaraj Das via cutting)
+
 
 Release 0.5.0 - 2006-08-04
 

Modified: lucene/hadoop/trunk/src/webapps/task/getMapOutput.jsp
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/webapps/task/getMapOutput.jsp?rev=431693&r1=431692&r2=431693&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/webapps/task/getMapOutput.jsp (original)
+++ lucene/hadoop/trunk/src/webapps/task/getMapOutput.jsp Tue Aug 15 13:26:47 2006
@@ -29,7 +29,11 @@
     inStream = fileSys.open(filename);
     int len = inStream.read(buffer);
     while (len > 0) {
-      outStream.write(buffer, 0, len);
+      try {
+        outStream.write(buffer, 0, len);
+      } catch (Exception e) {
+        break;
+      }
       len = inStream.read(buffer);
     }
   } catch (IOException ie) {
@@ -48,4 +52,4 @@
       outStream.close();
     }
   }
-%>
\ No newline at end of file
+%>



Mime
View raw message