From 34a7b3435af90e1e175fde31f61755d6fabda7ef Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Fri, 1 Apr 2016 12:41:54 +0530 Subject: Revert "cluster/ec: Rebalance hangs during rename" This reverts commit 3d34c495d547866a533bc0614b14163381830095, which broke building rpms and possibly other packages as well. Change-Id: I2c10a613599e63bc0cbdb1b405cd87be9efa4a99 --- tests/bugs/disperse/bug-1304988.t | 40 --------------------------------------- 1 file changed, 40 deletions(-) delete mode 100755 tests/bugs/disperse/bug-1304988.t (limited to 'tests/bugs/disperse') diff --git a/tests/bugs/disperse/bug-1304988.t b/tests/bugs/disperse/bug-1304988.t deleted file mode 100755 index 1a81dccdeae..00000000000 --- a/tests/bugs/disperse/bug-1304988.t +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -. $(dirname $0)/../../include.rc -. $(dirname $0)/../../volume.rc - -# This test renames files from dir to test and vice versa in an infinite loop -# at the same time add-brick and rebalance starts which should NOT be hanged - -cleanup; - -function rename_files { -while : -do - for i in {1..100}; do mv $M0/dir/file-$i $M0/test/newfile-$i; done - for i in {1..100}; do mv $M0/test/newfile-$i $M0/dir/file-$i; done -done -} - -TEST glusterd -TEST pidof glusterd -TEST $CLI volume create $V0 disperse 6 redundancy 2 $H0:$B0/${V0}{0..5} -TEST $CLI volume start $V0 -TEST glusterfs --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $M0 -EXPECT_WITHIN $CHILD_UP_TIMEOUT "6" ec_child_up_count $V0 0 - -mkdir $M0/dir -mkdir $M0/test -touch $M0/dir/file-{1..100} -rename_files & -back_pid1=$!; -echo "Started rename $back_pid1" - -TEST $CLI volume add-brick $V0 $H0:$B0/${V0}{6..11} -TEST $CLI volume rebalance $V0 start force - -#Test if rebalance completed with success. -EXPECT_WITHIN $REBALANCE_TIMEOUT "completed" rebalance_status_field $V0 -echo "rebalance done..." -kill $back_pid1 -cleanup; -- cgit