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 <ggarg@redhat.com>
Reviewed-on: http://review.gluster.org/11033
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
Gaurav Kumar Garg 2015-06-01 17:48:23 +05:30 committed by Venky Shankar
parent 402589f58c
commit a615f6c078
3 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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