diff options
author | Ravishankar N <ravishankar@redhat.com> | 2018-07-09 15:10:04 +0530 |
---|---|---|
committer | jiffin tony Thottan <jthottan@redhat.com> | 2018-07-11 14:04:25 +0000 |
commit | c530352ff2f5dc96631154f2b9a193d99cedd9bc (patch) | |
tree | 0a09cfbc4198c5e2830ad00344df6ea3178345e8 /mod_glusterfs/lighttpd/Makefile.am | |
parent | c1758216a39232e5592e0e34999fed48420fc5ac (diff) |
afr: don't update readables if inode refresh failed on all children
Backport of: https://review.gluster.org/#/c/20029/
3.12 still supports quorum-reads, hence modified afr_inode_refresh_done() to
support that.
If inode refresh failed on all children of afr due to ENOENT (say file
migrated by dht), it resets the readables to zero. Any inflight txn which
then later comes on the inode fails with EIO because no readable
children present for the inode.
Fix:
Don't update readables when inode refresh fails on *all* children of
afr. In that way any inflight txns will either proceed with its own inode
refresh if needed and fail it with the right errno or use the old value
of readables and continue with the txn.
Also, add quorum checks to the beginning of afr_transaction(). Otherwise, we
seem to be winding the lock and checking for quorum only in pre-op pahse.
Note: This should ideally fix BZ 1329505 since the stop gap fix for
it is has been reverted at https://review.gluster.org/#/c/20028.
Change-Id: I82990769f01be918a073fec83fc67ba4b3be24b1
BUG: 1599247
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Diffstat (limited to 'mod_glusterfs/lighttpd/Makefile.am')
0 files changed, 0 insertions, 0 deletions