Skip to content

Commit

Permalink
Merge pull request ceph#38472 from ronen-fr/wip-ronenf-qa-scrub
Browse files Browse the repository at this point in the history
test: cancelling both noscrub *and* nodeep-scrub
  • Loading branch information
ronen-fr committed Dec 9, 2020
2 parents 69e073a + 43b1129 commit 32fb8e9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion qa/standalone/scrub/osd-scrub-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,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
Expand All @@ -375,7 +379,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

Expand Down

0 comments on commit 32fb8e9

Please sign in to comment.