From 4f3abd2f4827b89b30bb5296846ab4b587896af4 Mon Sep 17 00:00:00 2001 From: hfutatzhanghb Date: Sat, 2 Nov 2024 17:27:06 +0800 Subject: [PATCH] HDFS-17654. Fix bugs in TestRouterMountTable (#7137). Contributed by farmmamba. Signed-off-by: He Xiaoqiao --- .../hdfs/server/federation/router/TestRouterMountTable.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } }