From 9296c2a36f4f84661cdd1871917ec4f6ae17b4ff Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 19 Aug 2024 10:34:31 -0400 Subject: [PATCH] qa: load all dirfrags before testing altname recovery The journal reset effectively cleared the cache so the rank may not have the dirfrag in memory when we verify alternate name recovery. Fixes: https://tracker.ceph.com/issues/67511 Signed-off-by: Patrick Donnelly --- qa/tasks/cephfs/test_fscrypt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/test_fscrypt.py b/qa/tasks/cephfs/test_fscrypt.py index d327c43c1fc..c1405415c63 100644 --- a/qa/tasks/cephfs/test_fscrypt.py +++ b/qa/tasks/cephfs/test_fscrypt.py @@ -83,9 +83,11 @@ class TestFSCryptRecovery(FSCryptTestCase): self.fs.set_joinable() self.fs.wait_for_daemons() + # load all inodes into cache (may be cleared by journal reset) + self.mount_a.run_shell_payload(f"cd {self.path} && find") + verify_alternate_name() - self.mount_a.run_shell_payload(f"cd {self.path} && find") self.mount_a.run_shell_payload(f"cd {self.path} && stat {file}") -- 2.39.5