]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: load all dirfrags before testing altname recovery 59522/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 19 Aug 2024 14:34:31 +0000 (10:34 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 29 Aug 2024 20:25:21 +0000 (16:25 -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>
(cherry picked from commit 9296c2a36f4f84661cdd1871917ec4f6ae17b4ff)

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}")