From b1b62c89be8b4158fbeb2459f80e5933cc607792 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Tue, 2 Nov 2021 11:06:11 +0800 Subject: [PATCH] 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) --- qa/tasks/cephfs/test_openfiletable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/tasks/cephfs/test_openfiletable.py b/qa/tasks/cephfs/test_openfiletable.py index 6df29762a2b0a..eff6b50932e4a 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'] -- 2.47.3