diff options
author | vmallika <vmallika@redhat.com> | 2015-12-03 14:55:36 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2015-12-08 23:21:15 -0800 |
commit | 156022b67f5da2ca27a607ee9e7608fdf5e91a20 (patch) | |
tree | c667230e0726f64884c3eae511c367e13b8c5a7c /tests/bugs/quota/bug-1287996.t | |
parent | 28da53e26e88f23f8917810ce0177f2628aa7e9a (diff) | |
download | glusterfs-156022b67f5da2ca27a607ee9e7608fdf5e91a20.tar.gz glusterfs-156022b67f5da2ca27a607ee9e7608fdf5e91a20.tar.xz glusterfs-156022b67f5da2ca27a607ee9e7608fdf5e91a20.zip |
glusterd/quota: quota-version conflict in export/import volinfo
When exporting/importing voinfo during handshake,
quota conf and quota xattr version were using same key
'quota-version' and updated wrong values when importing
quota version values.
Change-Id: If939d6f5bc4851d4114963877be72dda21834f0f
BUG: 1287996
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/12865
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'tests/bugs/quota/bug-1287996.t')
-rw-r--r-- | tests/bugs/quota/bug-1287996.t | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs/quota/bug-1287996.t b/tests/bugs/quota/bug-1287996.t new file mode 100644 index 0000000000..d75b7a2689 --- /dev/null +++ b/tests/bugs/quota/bug-1287996.t @@ -0,0 +1,24 @@ +#!/bin/bash + +. $(dirname $0)/../../include.rc +. $(dirname $0)/../../cluster.rc + +function check_peers { + $CLI_1 peer status | grep 'Peer in Cluster (Connected)' | wc -l +} + +cleanup; + +TEST launch_cluster 2; + +TEST $CLI_1 volume create $V0 $H1:$B1/$V0 +TEST $CLI_1 volume start $V0 +TEST $CLI_1 volume quota $V0 enable + +TEST $CLI_1 peer probe $H2; +EXPECT_WITHIN $PROBE_TIMEOUT 1 check_peers + + +TEST $CLI_1 volume stop $V0 +TEST $CLI_1 volume delete $V0 +cleanup; |