HDFS-17654. Fix bugs in TestRouterMountTable (#7137). Contributed by farmmamba.
Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
This commit is contained in:
parent
00cddf5bea
commit
4f3abd2f48
@ -611,7 +611,6 @@ public void testMountPointChildrenMultiDest() throws IOException {
|
|||||||
MountTable addEntry = MountTable.newInstance("/testdir", destMap);
|
MountTable addEntry = MountTable.newInstance("/testdir", destMap);
|
||||||
assertTrue(addMountTable(addEntry));
|
assertTrue(addMountTable(addEntry));
|
||||||
nnFs0.mkdirs(new Path("/tmp/testdir"));
|
nnFs0.mkdirs(new Path("/tmp/testdir"));
|
||||||
nnFs0.mkdirs(new Path("/tmp/testdir"));
|
|
||||||
nnFs1.mkdirs(new Path("/tmp/testdir01"));
|
nnFs1.mkdirs(new Path("/tmp/testdir01"));
|
||||||
nnFs0.mkdirs(new Path("/tmp/testdir/1"));
|
nnFs0.mkdirs(new Path("/tmp/testdir/1"));
|
||||||
nnFs1.mkdirs(new Path("/tmp/testdir01/1"));
|
nnFs1.mkdirs(new Path("/tmp/testdir01/1"));
|
||||||
@ -619,7 +618,7 @@ public void testMountPointChildrenMultiDest() throws IOException {
|
|||||||
assertEquals(2, ((HdfsFileStatus) finfo1[0]).getChildrenNum());
|
assertEquals(2, ((HdfsFileStatus) finfo1[0]).getChildrenNum());
|
||||||
} finally {
|
} finally {
|
||||||
nnFs0.delete(new Path("/tmp"), true);
|
nnFs0.delete(new Path("/tmp"), true);
|
||||||
nnFs0.delete(new Path("/tmp"), true);
|
nnFs1.delete(new Path("/tmp"), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user