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:
parent
402589f58c
commit
a615f6c078
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user