From debf136f0d57f1c74c07290fc53bbe418bd004a9 Mon Sep 17 00:00:00 2001 From: Tsz-wo Sze Date: Fri, 16 Mar 2012 17:49:23 +0000 Subject: [PATCH] svn merge -c 1301665 from trunk for HDFS-3104. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1301666 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ .../src/test/resources/testHDFSConf.xml | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index d3e5ed200ed..ce2a697b84d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -566,6 +566,8 @@ Release 0.23.2 - UNRELEASED HDFS-3098. Update and add tests for HADOOP-8173. (Daryn Sharp via szetszwo) + HDFS-3104. Add tests for HADOOP-8175. (Daryn Sharp via szetszwo) + OPTIMIZATIONS HDFS-3024. Improve performance of stringification in addStoredBlock (todd) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml index ad26ae0c3ba..7f9432a5f85 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml @@ -5719,6 +5719,42 @@ + + + mkdir: Test recreate of existing directory fails + + -fs NAMENODE -rm -r -f dir0 + -fs NAMENODE -mkdir dir0/dir1 + -fs NAMENODE -mkdir dir0/dir1 + + + -fs NAMENODE -rm -r dir0 + + + + RegexpComparator + mkdir: `dir0/dir1': File exists + + + + + + mkdir: Test recreate of existing directory with -p succeeds + + -fs NAMENODE -rm -r -f dir0 + -fs NAMENODE -mkdir dir0/dir1 + -fs NAMENODE -mkdir -p dir0/dir1 + + + -fs NAMENODE -rm -r dir0 + + + + ExactComparator + + + +