diff --git a/CHANGES.txt b/CHANGES.txt index 9f4a05d908..5e18b86505 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/src/java/org/apache/hadoop/fs/FsShell.java b/src/java/org/apache/hadoop/fs/FsShell.java index 91fc0b7a8f..73767f7031 100644 --- a/src/java/org/apache/hadoop/fs/FsShell.java +++ b/src/java/org/apache/hadoop/fs/FsShell.java @@ -393,6 +393,11 @@ public int read() throws IOException { } return ret; } + + public void close() throws IOException { + r.close(); + super.close(); + } } private InputStream forMagic(Path p, FileSystem srcFs) throws IOException {