From: Xiubo Li Date: Tue, 2 Nov 2021 03:06:11 +0000 (+0800) Subject: qa: increase the timeout value to wait a litte longer X-Git-Tag: v16.2.8~272^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F43979%2Fhead;p=ceph.git qa: increase the timeout value to wait a litte longer Sometimes the OpenFileTable::commit() will just come after the 30 seconds' waiting. Fixes: https://tracker.ceph.com/issues/52887 Signed-off-by: Xiubo Li (cherry picked from commit 5ade254c15d0b9f96cdd5cd2d5f7861ef2232812) --- diff --git a/qa/tasks/cephfs/test_openfiletable.py b/qa/tasks/cephfs/test_openfiletable.py index 6df29762a2b..eff6b50932e 100644 --- a/qa/tasks/cephfs/test_openfiletable.py +++ b/qa/tasks/cephfs/test_openfiletable.py @@ -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']