hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomwh...@apache.org
Subject svn commit: r925487 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/FsShell.java
Date Fri, 19 Mar 2010 23:52:51 GMT
Author: tomwhite
Date: Fri Mar 19 23:52:51 2010
New Revision: 925487

URL: http://svn.apache.org/viewvc?rev=925487&view=rev
Log:
HADOOP-6593. TextRecordInputStream doesn't close SequenceFile.Reader. Contributed by Chase
Bradford.

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/fs/FsShell.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=925487&r1=925486&r2=925487&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Fri Mar 19 23:52:51 2010
@@ -284,6 +284,9 @@ Trunk (unreleased changes)
     HADOOP-6546. BloomMapFile can return false negatives. (Clark Jefcoat
     via tomwhite)
 
+    HADOOP-6593. TextRecordInputStream doesn't close SequenceFile.Reader.
+    (Chase Bradford via tomwhite)
+
 Release 0.21.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/fs/FsShell.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/fs/FsShell.java?rev=925487&r1=925486&r2=925487&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/fs/FsShell.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/fs/FsShell.java Fri Mar 19 23:52:51 2010
@@ -393,6 +393,11 @@ public class FsShell extends Configured 
       }
       return ret;
     }
+
+    public void close() throws IOException {
+      r.close();
+      super.close();
+    }
   }
 
   private InputStream forMagic(Path p, FileSystem srcFs) throws IOException {



Mime
View raw message