Revert 1190677 for HDFS-2509.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1194986 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7f4dc27757
commit
2eca60199a
@ -828,9 +828,6 @@ Release 0.23.0 - Unreleased
|
|||||||
HDFS-2493. Remove reference to FSNamesystem in blockmanagement classes.
|
HDFS-2493. Remove reference to FSNamesystem in blockmanagement classes.
|
||||||
(szetszwo)
|
(szetszwo)
|
||||||
|
|
||||||
HDFS-2509. Add a test for DistributedFileSystem.getFileChecksum(..) on
|
|
||||||
directories or non existing files. (Uma Maheswara Rao G via szetszwo)
|
|
||||||
|
|
||||||
HDFS-2436. Change FSNamesystem.setTimes(..) for allowing setting times on
|
HDFS-2436. Change FSNamesystem.setTimes(..) for allowing setting times on
|
||||||
directories. (Uma Maheswara Rao G via szetszwo)
|
directories. (Uma Maheswara Rao G via szetszwo)
|
||||||
|
|
||||||
|
@ -412,26 +412,6 @@ public void testFileChecksum() throws Exception {
|
|||||||
final UserGroupInformation ugi = UserGroupInformation.createUserForTesting(
|
final UserGroupInformation ugi = UserGroupInformation.createUserForTesting(
|
||||||
current.getShortUserName() + "x", new String[]{"user"});
|
current.getShortUserName() + "x", new String[]{"user"});
|
||||||
|
|
||||||
try {
|
|
||||||
((DistributedFileSystem) hdfs).getFileChecksum(new Path(
|
|
||||||
"/test/TestNonExistingFile"));
|
|
||||||
fail("Expecting FileNotFoundException");
|
|
||||||
} catch (FileNotFoundException e) {
|
|
||||||
assertTrue("Not throwing the intended exception message", e.getMessage()
|
|
||||||
.contains("File does not exist: /test/TestNonExistingFile"));
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
Path path = new Path(
|
|
||||||
"/test/TestExistingDir/");
|
|
||||||
hdfs.mkdirs(path);
|
|
||||||
((DistributedFileSystem) hdfs).getFileChecksum(path);
|
|
||||||
fail("Expecting FileNotFoundException");
|
|
||||||
} catch (FileNotFoundException e) {
|
|
||||||
assertTrue("Not throwing the intended exception message", e.getMessage()
|
|
||||||
.contains("File does not exist: /test/TestExistingDir"));
|
|
||||||
}
|
|
||||||
|
|
||||||
//hftp
|
//hftp
|
||||||
final String hftpuri = "hftp://" + nnAddr;
|
final String hftpuri = "hftp://" + nnAddr;
|
||||||
System.out.println("hftpuri=" + hftpuri);
|
System.out.println("hftpuri=" + hftpuri);
|
||||||
|
Loading…
Reference in New Issue
Block a user