From 3586581c6edf222daf836c99ce2a1a266dc741f8 Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Fri, 8 May 2015 13:08:22 +0530 Subject: bitrot: Volfile generation should not proceed if node doesn't have any brick. glusterd crashes when bitrot is enabled on a distributed volume from a node which doesn't host a brick. While generating volfile glusterd should check number of brick on that node. If node doesn't have any brick then graph generation for bitrot and scrubber should not proceed further. Change-Id: I2158113e20e93738cde2a22fd73f0ae6b22aae9e BUG: 1219784 Signed-off-by: Gaurav Kumar Garg Reviewed-on: http://review.gluster.org/10664 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Atin Mukherjee Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- tests/bugs/bitrot/1207029-bitrot-daemon-should-start-on-valid-node.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/bugs') diff --git a/tests/bugs/bitrot/1207029-bitrot-daemon-should-start-on-valid-node.t b/tests/bugs/bitrot/1207029-bitrot-daemon-should-start-on-valid-node.t index 120facff02e..691ebc303e4 100755 --- a/tests/bugs/bitrot/1207029-bitrot-daemon-should-start-on-valid-node.t +++ b/tests/bugs/bitrot/1207029-bitrot-daemon-should-start-on-valid-node.t @@ -28,8 +28,8 @@ TEST $CLI_1 volume create $V0 $H1:$B1/${V0}0 $H1:$B1/${V0}1 ## Start the volume TEST $CLI_1 volume start $V0 -## Enable bitrot on volume -TEST $CLI_1 volume bitrot $V0 enable +## Enable bitrot on volume from 2nd node. +TEST $CLI_2 volume bitrot $V0 enable ## Bitd daemon should be running on the node which is having brick. Here node1 ## only have brick so bitrot daemon count value should be 1. -- cgit