]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: load all dirfrags before testing altname recovery
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 19 Aug 2024 14:34:31 +0000 (10:34 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 21 Aug 2024 14:10:36 +0000 (10:10 -0400)
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 <pdonnell@redhat.com>
qa/tasks/cephfs/test_fscrypt.py

index d327c43c1fc382585290a1a67ea5752204daad3b..c1405415c639a873e4e821077cb955cf9791c191 100644 (file)
@@ -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}")