HADOOP-6593. TextRecordInputStream doesn't close SequenceFile.Reader. Contributed by Chase Bradford.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@925487 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas White 2010-03-19 23:52:51 +00:00
parent c8ffb2249a
commit f32ffc750a
2 changed files with 8 additions and 0 deletions

View File

@ -284,6 +284,9 @@ Trunk (unreleased changes)
HADOOP-6546. BloomMapFile can return false negatives. (Clark Jefcoat HADOOP-6546. BloomMapFile can return false negatives. (Clark Jefcoat
via tomwhite) via tomwhite)
HADOOP-6593. TextRecordInputStream doesn't close SequenceFile.Reader.
(Chase Bradford via tomwhite)
Release 0.21.0 - Unreleased Release 0.21.0 - Unreleased
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -393,6 +393,11 @@ public int read() throws IOException {
} }
return ret; return ret;
} }
public void close() throws IOException {
r.close();
super.close();
}
} }
private InputStream forMagic(Path p, FileSystem srcFs) throws IOException { private InputStream forMagic(Path p, FileSystem srcFs) throws IOException {