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:
parent
c8ffb2249a
commit
f32ffc750a
@ -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
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user