]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: cancelling both noscrub *and* nodeep-scrub 39125/head
authorRonen Friedman <rfriedma@redhat.com>
Mon, 7 Dec 2020 12:41:45 +0000 (14:41 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 28 Jan 2021 11:13:16 +0000 (12:13 +0100)
as part of osd-scrub-test.sh.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 43b1129030823817e0b7a21c85de5d3da841510a)

qa/standalone/scrub/osd-scrub-test.sh

index 7fcbfc6510100d2abbeb958e8387698c9722fa1e..7887969aeb9166af9265072ca184923df887ee45 100755 (executable)
@@ -260,6 +260,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
@@ -284,7 +288,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