Skip to content

Commit 5a966ca

Browse files
committed
qa/scrub: more delay when waiting for noscrub to take effect
Signed-off-by: Ronen Friedman <[email protected]>
1 parent 5c09888 commit 5a966ca

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,17 +603,16 @@ function TEST_dump_scrub_schedule() {
603603
declare -A expct_dmp_duration=( ['dmp_last_duration']="0" ['dmp_last_duration_neg']="not0" )
604604
wait_any_cond $pgid 10 $saved_last_stamp expct_dmp_duration "WaitingAfterScrub_dmp " sched_data || return 1
605605

606-
sleep 2
607-
608606
#
609607
# step 2: set noscrub and request a "periodic scrub". Watch for the change in the 'is the scrub
610608
# scheduled for the future' value
611609
#
612610

613-
ceph tell osd.* config set osd_shallow_scrub_chunk_max "3" || return 1
614-
ceph tell osd.* config set osd_scrub_sleep "2.0" || return 1
615611
ceph osd set noscrub || return 1
616612
sleep 2
613+
ceph tell osd.* config set osd_shallow_scrub_chunk_max "3" || return 1
614+
ceph tell osd.* config set osd_scrub_sleep "2.0" || return 1
615+
sleep 8
617616
saved_last_stamp=${sched_data['query_last_stamp']}
618617

619618
ceph tell $pgid schedule-scrub

0 commit comments

Comments
 (0)