From: Ronen Friedman Date: Mon, 7 Dec 2020 12:41:45 +0000 (+0200) Subject: test: cancelling both noscrub *and* nodeep-scrub X-Git-Tag: v15.2.13~13^2~7^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40278%2Fhead;p=ceph.git test: cancelling both noscrub *and* nodeep-scrub as part of osd-scrub-test.sh. Signed-off-by: Ronen Friedman (cherry picked from commit 43b1129030823817e0b7a21c85de5d3da841510a) --- diff --git a/qa/standalone/scrub/osd-scrub-test.sh b/qa/standalone/scrub/osd-scrub-test.sh index 89534938063e..0fbc72881835 100755 --- a/qa/standalone/scrub/osd-scrub-test.sh +++ b/qa/standalone/scrub/osd-scrub-test.sh @@ -303,6 +303,10 @@ function _scrub_abort() { fi ceph osd set $stopscrub + if [ "$type" = "deep_scrub" ]; + then + ceph osd set noscrub + fi # Wait for scrubbing to end set -o pipefail @@ -327,7 +331,13 @@ function _scrub_abort() { fi local last_scrub=$(get_last_scrub_stamp $pgid) - ceph osd unset noscrub + ceph config set osd "osd_scrub_sleep" "0.1" + + ceph osd unset $stopscrub + if [ "$type" = "deep_scrub" ]; + then + ceph osd unset noscrub + fi TIMEOUT=$(($objects / 2)) wait_for_scrub $pgid "$last_scrub" || return 1