From: liangmingyuan Date: Wed, 5 Jun 2024 03:36:28 +0000 (+0800) Subject: qa/standalone: bugfix for latecy repair after scrub X-Git-Tag: v20.0.0~1271^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bbce02800b2d2f1539d73083b9a58eb634dbca0f;p=ceph.git 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 --- diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index f9c6924ce042..84233f32fb9c 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() {