From a615f6c078c76791318c2a58efcc8baef18c25db Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Mon, 1 Jun 2015 17:48:23 +0530 Subject: tests/bitrot: Induce delay before invoking bitrot subcommands This is to prevent access to uninitialized variable in reconfigure() that's currently getting inititlized on CHILD_UP. [ NOTE: This is a temporary fix and would not be needed when BZ #1226666 is fixed. ] Change-Id: I8779073fe7f315a380b833ddc248c99958de67d0 BUG: 1226902 Signed-off-by: Gaurav Kumar Garg Reviewed-on: http://review.gluster.org/11033 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Venky Shankar --- tests/bugs/bitrot/1209751-bitrot-scrub-tunable-reset.t | 4 ++++ tests/bugs/bitrot/1209818-vol-info-show-scrub-process-properly.t | 4 ++++ tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'tests/bugs/bitrot') diff --git a/tests/bugs/bitrot/1209751-bitrot-scrub-tunable-reset.t b/tests/bugs/bitrot/1209751-bitrot-scrub-tunable-reset.t index 919ffc3ba6..1d16057b2e 100644 --- a/tests/bugs/bitrot/1209751-bitrot-scrub-tunable-reset.t +++ b/tests/bugs/bitrot/1209751-bitrot-scrub-tunable-reset.t @@ -24,6 +24,10 @@ TEST $CLI volume bitrot $V0 enable EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" get_bitd_count +## sleep 5 second so that timer can initialize and bitrot can reconfigure that +## timer value. +sleep 5; + ## Set bitrot scrub-throttle value to lazy TEST $CLI volume bitrot $V0 scrub-throttle lazy diff --git a/tests/bugs/bitrot/1209818-vol-info-show-scrub-process-properly.t b/tests/bugs/bitrot/1209818-vol-info-show-scrub-process-properly.t index 4fe02dc7f6..9271a0d056 100644 --- a/tests/bugs/bitrot/1209818-vol-info-show-scrub-process-properly.t +++ b/tests/bugs/bitrot/1209818-vol-info-show-scrub-process-properly.t @@ -24,6 +24,10 @@ TEST $CLI volume bitrot $V0 enable EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" get_bitd_count +## sleep 5 second so that timer can initialize and bitrot can reconfigure that +## timer value. +sleep 5; + ## Set bitrot scrubber process to pause state TEST $CLI volume bitrot $V0 scrub pause diff --git a/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t b/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t index b15b908d21..4d94213aa2 100644 --- a/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t +++ b/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t @@ -24,6 +24,10 @@ TEST $CLI volume bitrot $V0 enable EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" get_bitd_count +## sleep 5 second so that timer can initialize and bitrot can reconfigure that +## timer value. +sleep 5; + ## Pause scrubber operation on volume $V0 TEST $CLI volume bitrot $V0 scrub pause -- cgit