summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/cluster-syncop.c
diff options
context:
space:
mode:
authorKevin Vigor <kvigor@fb.com>2017-01-04 10:22:08 -0800
committerKevin Vigor <kvigor@fb.com>2017-01-04 11:23:16 -0800
commit1e69c7ef96a92754d4394fe2cff8767d3b1809fa (patch)
treecf0c8420c7a712927441a2574a1654275e27f8ef /libglusterfs/src/cluster-syncop.c
parent02f8b7300bc635dea9ae1fee6ef14c0d4725591a (diff)
Make halo prove tests less racy
Summary: Halo prove tests were racy in a couple of ways. First, they raced against the self-heal daemon (e.g. write to volume with two bricks up and then assert that only two bricks have data file; but shd will properly copy file to third brick sooner or later). Fix by disabling shd in such tests. Second, tests rely on pings to complete and set halo state as expected, but do not check for this. If writing begins before initial pings complete, all bricks may be up and receive the data. Fix by adding explicit check for halo child states. Test Plan: prove tests/basic/halo*.t (prior to this changeset, would fail within ~10 iterations on my devserver and almost always on centos regression. Now runs overnight without failure on my devserver). Reviewers: Subscribers: Tasks: Blame Revision: Change-Id: If6823540dd4e23a19cc495d5d0e8b0c6fde9a3bd Signed-off-by: Kevin Vigor <kvigor@fb.com> Reviewed-on: http://review.gluster.org/16325 CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Shreyas Siravara <sshreyas@fb.com> Smoke: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'libglusterfs/src/cluster-syncop.c')
0 files changed, 0 insertions, 0 deletions