diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-09-14 16:51:25 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-09-15 10:09:46 -0700 |
commit | 245eec73fb26654608b2524317f4a4af5f9ef61c (patch) | |
tree | 59d0f8d518459d4b479db36dfce36523da3103f7 /tests/bugs | |
parent | 7c2c5afb8db02628aba3097151c4f6383508b397 (diff) |
cluster/afr: Handle EAGAIN properly in inodelk
Problem:
When one of the brick is taken down and brough back up in a replica pair, locks
on that brick will be allowed. Afr returns inodelk success even when one of the
bricks already has the lock taken.
Fix:
If any brick returns EAGAIN return failure to parent xlator.
Change-Id: I5b842d0fc094359cc4231494053d2bfeb606bbbe
BUG: 1141539
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/8710
Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/bugs')
-rwxr-xr-x | tests/bugs/bug-1117851.t | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/bugs/bug-1117851.t b/tests/bugs/bug-1117851.t index 94f3104fedc..02e52f53787 100755 --- a/tests/bugs/bug-1117851.t +++ b/tests/bugs/bug-1117851.t @@ -35,7 +35,6 @@ check_files () { if [ ! -f $(printf %s/dst%04d $1 $i) ]; then if [ -f $(printf %s/src%04d $1 $i) ]; then echo "file $i didnt get moved" > /dev/stderr - errors=$((errors+1)) else echo "file $i is MISSING" > /dev/stderr errors=$((errors+1)) |