hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r694902 - in /hadoop/core/trunk: CHANGES.txt src/hdfs/org/apache/hadoop/hdfs/HftpFileSystem.java
Date Sat, 13 Sep 2008 08:54:32 GMT
Author: omalley
Date: Sat Sep 13 01:54:32 2008
New Revision: 694902

URL: http://svn.apache.org/viewvc?rev=694902&view=rev
Log:
HADOOP-4099. Fix null pointer when using HFTP from an 0.18 server.
(dhruba via omalley)

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/HftpFileSystem.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=694902&r1=694901&r2=694902&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Sat Sep 13 01:54:32 2008
@@ -540,9 +540,12 @@
     HADOOP-3831. Very slow reading clients sometimes failed while reading.
     (rangadi)
 
-		HADOOP-4155. Use JobTracker's start time while initializing JobHistory's
+    HADOOP-4155. Use JobTracker's start time while initializing JobHistory's
     JobTracker Unique String. (lohit) 
 
+    HADOOP-4099. Fix null pointer when using HFTP from an 0.18 server.
+    (dhruba via omalley)
+
 Release 0.18.1 - 2008-09-17
 
   IMPROVEMENTS

Modified: hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/HftpFileSystem.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/HftpFileSystem.java?rev=694902&r1=694901&r2=694902&view=diff
==============================================================================
--- hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/HftpFileSystem.java (original)
+++ hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/HftpFileSystem.java Sat Sep 13 01:54:32
2008
@@ -162,7 +162,10 @@
       long atime = 0;
       try {
         modif = df.parse(attrs.getValue("modified")).getTime();
-        atime = df.parse(attrs.getValue("accesstime")).getTime();
+        String astr = attrs.getValue("accesstime");
+        if (astr != null) {
+          atime = df.parse(astr).getTime();
+        }
       } catch (ParseException e) { throw new SAXException(e); }
       FileStatus fs = "file".equals(qname)
         ? new FileStatus(



Mime
View raw message