path: root/tests/bitrot
diff options
authorRaghavendra Bhat <>2019-04-02 16:21:51 -0400
committerXavi Hernandez <>2019-04-04 21:10:17 +0000
commit0e067fa663dcfdafa093c4a5fa8bdc47eb57cbe0 (patch)
tree53e547a45453d98b96238459a2613b5df381b86b /tests/bitrot
parentda47caf2405c08c9abafc4a55525a8b2c2dd5bb8 (diff)
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 <>
Diffstat (limited to 'tests/bitrot')
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/bitrot/bug-1373520.t b/tests/bitrot/bug-1373520.t
index 5c53ebb..6af5124 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