Skip to content

Commit bc196b7

Browse files
committed
qa: make the directory non-empty to force migration
rank 0 will not migrate the directory until it is non-empty. And creating a file and promptly deleting is not reliable; the vstart_runner.py test will just loop forever. Signed-off-by: Patrick Donnelly <[email protected]>
1 parent cb3229b commit bc196b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qa/tasks/cephfs/test_data_scan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,10 +722,10 @@ def test_rebuild_inotable(self):
722722
mds0_id = active_mds_names[0]
723723
mds1_id = active_mds_names[1]
724724

725-
self.mount_a.run_shell(["mkdir", "dir1"])
725+
self.mount_a.run_shell_payload("mkdir -p dir1/dir2")
726726
dir_ino = self.mount_a.path_to_ino("dir1")
727727
self.mount_a.setfattr("dir1", "ceph.dir.pin", "1")
728-
# wait for subtree migration
728+
self._wait_subtrees([('/dir1', 1)], rank=1)
729729

730730
file_ino = 0;
731731
while True:

0 commit comments

Comments
 (0)