diff options
author | Shreyas Siravara <sshreyas@fb.com> | 2016-12-14 08:24:01 -0800 |
---|---|---|
committer | Shreyas Siravara <sshreyas@fb.com> | 2016-12-14 14:07:37 -0800 |
commit | e537c7990916d3971dbdad0b086c3d334a32582d (patch) | |
tree | 71a5c56e452ca997bf58930e2e0f6c5471768528 /tests | |
parent | 061bb08f3bac157a11f1ada0156b51c2511400bd (diff) |
tests: Fix tests/bugs/distribute/bug-1161311.t
Summary:
- http://review.gluster.org/#/c/16078/ made rebalance faster and broke
the test.
- We made the file bigger so rebalance takes longer.
Change-Id: I86f08d3d53bbff8373e954b8ae57a3a9a5942b74
Signed-off-by: Shreyas Siravara <sshreyas@fb.com>
Reviewed-on: http://review.gluster.org/16133
Reviewed-by: Kevin Vigor <kvigor@fb.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/bugs/distribute/bug-1161311.t | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/bugs/distribute/bug-1161311.t b/tests/bugs/distribute/bug-1161311.t index c5a7f041ac8..8cf905a8f0b 100755 --- a/tests/bugs/distribute/bug-1161311.t +++ b/tests/bugs/distribute/bug-1161311.t @@ -53,8 +53,14 @@ TEST glusterfs -s $H0 --volfile-id $V0 $M0; TEST mkdir $M0/dir1 TEST mkdir -p $M0/dir2/dir3 -# Create a large file (1GB), so that rebalance takes time -dd if=/dev/urandom of=$M0/dir1/FILE2 bs=64k count=10240 +# Create a large file (6.4 GB), so that rebalance takes time +# Reading from /dev/urandom is slow, so we'll cat it together +dd if=/dev/urandom of=/tmp/FILE2 bs=64k count=10240 +for i in {1..10}; do + cat /tmp/FILE2 >> $M0/dir1/FILE2 +done + +#dd if=/dev/urandom of=$M0/dir1/FILE2 bs=64k count=10240 # Rename the file to create a linkto, for rebalance to # act on the file |