diff options
author | vmallika <vmallika@redhat.com> | 2015-12-03 14:55:36 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2015-12-08 23:25:25 -0800 |
commit | f18432dde90fbea02ff656eecc916e8b04e0d516 (patch) | |
tree | 6bdbf0581410b6089a125d801be86f54c189ce54 /tests/bugs/quota/bug-1287996.t | |
parent | 2142614f385352903d0cdb67657f2e639b79f72c (diff) |
glusterd/quota: quota-version conflict in export/import volinfo
This is a backport of http://review.gluster.org/#/c/12865/
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>
Change-Id: Ic234d9e496f1372789112a0b82ba5cf34014de64
BUG: 1288052
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/12872
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
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 00000000000..d75b7a26897 --- /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; |