diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterMountTable.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterMountTable.java index a1a2658731..cdcac58c6f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterMountTable.java +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterMountTable.java @@ -611,7 +611,6 @@ public void testMountPointChildrenMultiDest() throws IOException { MountTable addEntry = MountTable.newInstance("/testdir", destMap); assertTrue(addMountTable(addEntry)); nnFs0.mkdirs(new Path("/tmp/testdir")); - nnFs0.mkdirs(new Path("/tmp/testdir")); nnFs1.mkdirs(new Path("/tmp/testdir01")); nnFs0.mkdirs(new Path("/tmp/testdir/1")); nnFs1.mkdirs(new Path("/tmp/testdir01/1")); @@ -619,7 +618,7 @@ public void testMountPointChildrenMultiDest() throws IOException { assertEquals(2, ((HdfsFileStatus) finfo1[0]).getChildrenNum()); } finally { nnFs0.delete(new Path("/tmp"), true); - nnFs0.delete(new Path("/tmp"), true); + nnFs1.delete(new Path("/tmp"), true); } }