]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone: bugfix for latecy repair after scrub 57888/head
authorliangmingyuan <liangmingyuan@baidu.com>
Wed, 5 Jun 2024 03:36:28 +0000 (11:36 +0800)
committerliangmingyuan <liangmingyuan@baidu.com>
Wed, 5 Jun 2024 03:36:28 +0000 (11:36 +0800)
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 <liangmingyuan@baidu.com>
qa/standalone/ceph-helpers.sh

index f9c6924ce042d7416745392a2ec9fe34ebbef4c3..84233f32fb9c1a8c073c15b194912d1b21905d00 100755 (executable)
@@ -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() {