HDFS-5879. Merge 1567704 from trunk.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1567705 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
22a0f31d66
commit
a6360ccbef
|
@ -78,6 +78,9 @@ Release 2.4.0 - UNRELEASED
|
||||||
HDFS-4858. HDFS DataNode to NameNode RPC should timeout.
|
HDFS-4858. HDFS DataNode to NameNode RPC should timeout.
|
||||||
(Henry Wang via shv)
|
(Henry Wang via shv)
|
||||||
|
|
||||||
|
HDFS-5879. Some TestHftpFileSystem tests do not close streams.
|
||||||
|
(Gera Shegalov via suresh)
|
||||||
|
|
||||||
Release 2.3.1 - UNRELEASED
|
Release 2.3.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -136,6 +136,7 @@ public class TestHftpFileSystem {
|
||||||
out.close();
|
out.close();
|
||||||
FSDataInputStream in = hftpFs.open(p);
|
FSDataInputStream in = hftpFs.open(p);
|
||||||
assertEquals('0', in.read());
|
assertEquals('0', in.read());
|
||||||
|
in.close();
|
||||||
|
|
||||||
// Check the file status matches the path. Hftp returns a FileStatus
|
// Check the file status matches the path. Hftp returns a FileStatus
|
||||||
// with the entire URI, extract the path part.
|
// with the entire URI, extract the path part.
|
||||||
|
@ -250,6 +251,7 @@ public class TestHftpFileSystem {
|
||||||
FSDataInputStream in = hftpFs.open(testFile);
|
FSDataInputStream in = hftpFs.open(testFile);
|
||||||
in.seek(7);
|
in.seek(7);
|
||||||
assertEquals('7', in.read());
|
assertEquals('7', in.read());
|
||||||
|
in.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue