Skip to content

Commit bbce028

Browse files
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 <[email protected]>
1 parent 1a0bc3c commit bbce028

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qa/standalone/ceph-helpers.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,6 +1856,7 @@ function repair() {
18561856
local last_scrub=$(get_last_scrub_stamp $pgid)
18571857
ceph pg repair $pgid
18581858
wait_for_scrub $pgid "$last_scrub"
1859+
sleep 2
18591860
}
18601861

18611862
function test_repair() {

0 commit comments

Comments
 (0)