From 13a89dcf6d6a57cca3fb3c09ceca001c35fc1d66 Mon Sep 17 00:00:00 2001 From: Tsz-wo Sze Date: Sat, 29 Oct 2011 19:32:57 +0000 Subject: [PATCH] Revert 1190680 for HDFS-2509. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1194988 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 --- .../hdfs/TestDistributedFileSystem.java | 20 ------------------- 2 files changed, 23 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index ab66fae08d9..094940a6dd7 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -752,9 +752,6 @@ Release 0.23.0 - Unreleased HDFS-2322. the build fails in Windows because commons-daemon TAR cannot be fetched. (tucu) - 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 directories. (Uma Maheswara Rao G via szetszwo) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java index c6f86b90c3b..0ea9f017865 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDistributedFileSystem.java @@ -412,26 +412,6 @@ public class TestDistributedFileSystem { final UserGroupInformation ugi = UserGroupInformation.createUserForTesting( 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 final String hftpuri = "hftp://" + nnAddr; System.out.println("hftpuri=" + hftpuri);