Skip to content

Commit

Permalink
HDFS-17654. Fix bugs in TestRouterMountTable (#7137). Contributed by …
Browse files Browse the repository at this point in the history
…farmmamba.

Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
  • Loading branch information
hfutatzhanghb authored Nov 2, 2024
1 parent 00cddf5 commit 4f3abd2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,15 +611,14 @@ 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"));
FileStatus[] finfo1 = routerFs.listStatus(new Path("/"));
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);
}
}

Expand Down

0 comments on commit 4f3abd2

Please sign in to comment.