diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2012-01-04 20:40:35 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2012-01-04 20:41:28 +0530 |
commit | f47bc8114fb7e383c913638d8fb0a914212c8b55 (patch) | |
tree | 60e99653103e305d9b2b74c5391d85c3073c1e32 | |
parent | 6b24e7071e764a2032288578bcebeb90cdea5412 (diff) |
3747: check if afr client crashes or not when files are put directly in the backend
Change-Id: Ibcdda2a42f11cb675675d0ff2c3c0305ab110814
BUG: 3747
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
-rwxr-xr-x | dvm/3747/testcase | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dvm/3747/testcase b/dvm/3747/testcase new file mode 100755 index 0000000..12c2553 --- /dev/null +++ b/dvm/3747/testcase @@ -0,0 +1,46 @@ +#!/bin/bash + +function _init () +{ + source $cwd/regression_helpers; +} + +function backend_data () +{ + $GLUSTERFSDIR/gluster volume create --mode=script $global_bug_id replica 2 $(hostname):$EXPORT_DIR/$global_bug_id/export1\ + $(hostname):$EXPORT_DIR/$global_bug_id/export2 2>/dev/null 1>/dev/null; + + $GLUSTERFSDIR/gluster volume start $global_bug_id &>/dev/null; + + mount_glusterfs $global_bug_id; + + sleep 1; + + $GLUSTERFSDIR/gluster --mode=script volume stop $global_bug_id &>/dev/null; + + touch $EXPORT_DIR/$global_bug_id/export1/{1..10} ; + + $GLUSTERFSDIR/gluster volume start $global_bug_id &>/dev/null; + + sleep 2; + + find $FUSE_MOUNT | xargs stat &>/dev/null; + + $GLUSTERFSDIR/gluster --mode=script volume stop $global_bug_id &>/dev/null; + + rm -rf /$EXPORT_DIR/$global_bug_id/export{1,2}/*; + + touch $EXPORT_DIR/$global_bug_id/export1/{1..10} ; + + $GLUSTERFSDIR/gluster volume start $global_bug_id &>/dev/null; + + sleep 2; + + find $FUSE_MOUNT | xargs stat &>/dev/null; + + stat $FUSE_MOUNT &>/dev/null; + + return $?; +} + +_init ; backend_data
\ No newline at end of file |