From bbce02800b2d2f1539d73083b9a58eb634dbca0f Mon Sep 17 00:00:00 2001 From: liangmingyuan Date: Wed, 5 Jun 2024 11:36:28 +0800 Subject: [PATCH] qa/standalone: bugfix for latecy repair after scrub When pg repair is called manully, a deep-scrub will be executed firstly, and requeue DoRecovery() if there are inconsistent objects. But in repair() of ceph-helpers.sh, it use scrub_stamp to determine repair completing time. This will leads to the repair is not completed before another test case. Signed-off-by: Mingyuan Liang --- qa/standalone/ceph-helpers.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index f9c6924ce042d..84233f32fb9c1 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -1856,6 +1856,7 @@ function repair() { local last_scrub=$(get_last_scrub_stamp $pgid) ceph pg repair $pgid wait_for_scrub $pgid "$last_scrub" + sleep 2 } function test_repair() { -- 2.39.5