From 0e067fa663dcfdafa093c4a5fa8bdc47eb57cbe0 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 2 Apr 2019 16:21:51 -0400 Subject: tests/bitrot: enable self-heal daemon before accessing the files For testing the recovery of bad (or corrupted files) in a dispersed volume, first enable self-heal daemon and let heal happen. In bitrot feature, if a file becomes corrupted, the solution recommended is to remove that file directly from the backend and then allowing heal to happen. Hence turn on self-heal daemon and allow the heal to happen after removing corrupted copy from the backend. Change-Id: I7186110398ec1aee7e5727b9d1aac9a01db4d831 fixes: bz#1695327 Signed-off-by: Raghavendra Bhat --- tests/bitrot/bug-1373520.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/bitrot') diff --git a/tests/bitrot/bug-1373520.t b/tests/bitrot/bug-1373520.t index 5c53ebb82e2..6af5124e86e 100644 --- a/tests/bitrot/bug-1373520.t +++ b/tests/bitrot/bug-1373520.t @@ -59,6 +59,9 @@ TEST rm -rf $(find $B0/${V0}5 -inum $(stat -c %i $B0/${V0}5/FILE1)) #New mount for recovery TEST $GFS -s $H0 --use-readdirp=no --attribute-timeout=0 --entry-timeout=0 --volfile-id $V0 $M1 +$CLI volume set $V0 self-heal-daemon on +TEST $CLI volume heal $V0 + #Access files TEST cat $M1/FILE1 EXPECT_WITHIN $HEAL_TIMEOUT "$SIZE" path_size $B0/${V0}5/FILE1 -- cgit