]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: increase the timeout value to wait a litte longer 43767/head
authorXiubo Li <xiubli@redhat.com>
Tue, 2 Nov 2021 03:06:11 +0000 (11:06 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 2 Nov 2021 03:06:14 +0000 (11:06 +0800)
Sometimes the OpenFileTable::commit() will just come after the 30
seconds' waiting.

Fixes: https://tracker.ceph.com/issues/52887
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/test_openfiletable.py

index 6df29762a2b0a6762ae261647f1c64200d595982..eff6b50932e4ac78614f90e14391c2e7c1938a94 100644 (file)
@@ -62,7 +62,7 @@ class OpenFileTable(CephFSTestCase):
         
         # Open the file
         p = self.mount_a.open_background("omap_counter_test_file")
-        self.wait_until_true(lambda: self._check_oft_counter('omap_total_updates', 2), timeout=30)
+        self.wait_until_true(lambda: self._check_oft_counter('omap_total_updates', 2), timeout=120)
         
         perf_dump = self.fs.mds_asok(['perf', 'dump'])
         omap_total_updates_1 = perf_dump['oft']['omap_total_updates']
@@ -73,8 +73,8 @@ class OpenFileTable(CephFSTestCase):
         # Now close the file
         self.mount_a.kill_background(p)
         # Ensure that the file does not exist any more
-        self.wait_until_true(lambda: self._check_oft_counter('omap_total_removes', 1), timeout=30)
-        self.wait_until_true(lambda: self._check_oft_counter('omap_total_kv_pairs', 1), timeout=30)
+        self.wait_until_true(lambda: self._check_oft_counter('omap_total_removes', 1), timeout=120)
+        self.wait_until_true(lambda: self._check_oft_counter('omap_total_kv_pairs', 1), timeout=120)
 
         perf_dump = self.fs.mds_asok(['perf', 'dump'])
         omap_total_removes = perf_dump['oft']['omap_total_removes']