HDFS-17654. Fix bugs in TestRouterMountTable (#7137). Contributed by farmmamba.

Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
This commit is contained in:
hfutatzhanghb 2024-11-02 17:27:06 +08:00 committed by GitHub
parent 00cddf5bea
commit 4f3abd2f48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
}