Bug 1005183

Summary: cluster wide lock not released when originating glusterd dies
Product: [Community] GlusterFS Reporter: Avra Sengupta <asengupt>
Component: glusterdAssignee: Avra Sengupta <asengupt>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: gluster-bugs, ndevos
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-11 18:22:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Avra Sengupta 2013-09-06 11:33:00 UTC
Description of problem:
Most gluster commands takes a cluster wide lock, before proceeding to staging process. And after the commit stage, the cluster is unlocked. But if in between the node, from which the command was executed goes down, the lock is not released, and the whole cluster stays in a lockdown stage.


Version-Release number of selected component (if applicable):


How reproducible:
Everytime


Steps to Reproduce:
1. Attach gdb to a glusterd process on one of the nodes, and put a breakpoint.
2. Run a gluster volume command from any other node.
3. While the process is waiting on the breakpoint, kill the node from which the command was given.

Actual results:
The whole cluster remains in a lockdown


Expected results:
The cluster should recover itself from the locked stage


Additional info:

Comment 1 Anand Avati 2013-09-06 11:46:03 UTC
REVIEW: http://review.gluster.org/5839 (glusterd: Release cluster locks on receiving rpc disconnect) posted (#1) for review on master by Avra Sengupta (asengupt)

Comment 2 Anand Avati 2013-09-11 07:44:29 UTC
REVIEW: http://review.gluster.org/5839 (glusterd: Release cluster locks on receiving rpc disconnect) posted (#2) for review on master by Avra Sengupta (asengupt)

Comment 3 Anand Avati 2013-09-11 07:50:33 UTC
REVIEW: http://review.gluster.org/5839 (glusterd: Release cluster locks on receiving rpc disconnect) posted (#3) for review on master by Avra Sengupta (asengupt)

Comment 4 Anand Avati 2013-09-13 14:44:43 UTC
REVIEW: http://review.gluster.org/5839 (glusterd: Release cluster locks on receiving rpc disconnect) posted (#4) for review on master by Avra Sengupta (asengupt)

Comment 5 Avra Sengupta 2013-12-06 06:19:43 UTC
This fix has already made it upstream as part of http://review.gluster.org/#/c/6003/

Comment 6 Niels de Vos 2014-07-11 18:22:38 UTC

*** This bug has been marked as a duplicate of bug 969461 ***