[Bugs] [Bug 1602236] When reserve limits are reached, append on an existing file after truncate operation results to hang
bugzilla at redhat.com
bugzilla at redhat.com
Wed Jul 18 16:50:31 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1602236
Worker Ant <bugzilla-bot at gluster.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|POST |MODIFIED
--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/20527 committed in master by "Ravishankar N"
<ravishankar at redhat.com> with a commit message- afr: switch lk_owner only when
pre-op succeeds
Problem:
In a disk full scenario, we take a failure path in
afr_transaction_perform_fop()
and go to unlock phase. But we change the lk-owner before that, causing unlock
to fail. When mount issues another fop that takes locks on that file, it hangs.
Fix:
Change lk-owner only when we are about to perform the fop phase.
Also fix the same issue for arbiters when afr_txn_arbitrate_fop() fails the
fop.
Also removed the DISK_SPACE_CHECK_AND_GOTO in posix_xattrop. Otherwise truncate
to zero will fail pre-op phase with ENOSPC when the user is actually trying to
freee up space.
Change-Id: Ic4c8a596b4cdf4a7fc189bf00b561113cf114353
fixes: bz#1602236
Signed-off-by: Ravishankar N <ravishankar at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=ruFiZJGgsa&a=cc_unsubscribe
More information about the Bugs
mailing list