Bug 761891 (GLUSTER-159)

Summary: Client hangs when coherent byte range locks is attempted in replicate setup
Product: [Community] GlusterFS Reporter: Vijay Bellur <vbellur>
Component: replicateAssignee: Vikas Gorur <vikas>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 2.0.4CC: gluster-bugs, modjohn, vijay, vinayak
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Client Volume file
none
Server Volume file none

Description Vijay Bellur 2009-07-22 13:28:00 UTC
Created attachment 39 [details]
Output of RPM -qa

Comment 1 Vijay Bellur 2009-07-22 16:27:18 UTC
When coherent byte range locks is attempted in afr setup, the clients hang and become unresponsive. Ping Pong (http://wiki.samba.org/index.php/Ping_pong) is being used to attempt coherent byte range locks.

The client and server vol files are attached. 

Thanks to John Simmonds (john2.simmonds.uk) for pointing this bug.

Comment 2 Vikas Gorur 2009-07-23 13:56:05 UTC
replicate/afr_lk_cbk used the struct flock returned by a previous STACK_WIND to do STACK_WIND on the next subvolume, instead of using the struct flock supplied by the user.

After applying http://patches.gluster.com/patch/813/ the ping pong tool behaves as expected in http://wiki.samba.org/index.php/Ping_pong

Comment 3 Anand Avati 2009-07-27 15:33:41 UTC
PATCH: http://patches.gluster.com/patch/813 in master (cluster/afr: Use user-supplied struct flock to STACK_WIND)

Comment 4 Anand Avati 2009-07-27 15:34:03 UTC
PATCH: http://patches.gluster.com/patch/813 in release-2.0 (cluster/afr: Use user-supplied struct flock to STACK_WIND)

Comment 5 John Simmonds 2009-08-11 06:55:12 UTC
I was the gentlemen who originally pointed out this bug and I am very happy to confirm that the patch fixed my/this problem.

I have tested this on the setup I have here that uses both the distribute and replicate translators. 

Thank you very much GlusterFS support team.

Regards,

John Simmonds

Comment 6 Vijay Bellur 2009-08-11 10:03:32 UTC
(In reply to comment #5)
> I was the gentlemen who originally pointed out this bug and I am very happy to
> confirm that the patch fixed my/this problem.
> 
> I have tested this on the setup I have here that uses both the distribute and
> replicate translators. 
> 

Thanks for your confirmation!