Bug 761891 (GLUSTER-159) - Client hangs when coherent byte range locks is attempted in replicate setup
Summary: Client hangs when coherent byte range locks is attempted in replicate setup
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-159
Product: GlusterFS
Classification: Community
Component: replicate
Version: 2.0.4
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Vikas Gorur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-22 16:27 UTC by Vijay Bellur
Modified: 2009-11-26 12:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTNR
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)
Client Volume file (535 bytes, text/*)
2009-07-22 13:27 UTC, Vijay Bellur
no flags Details
Server Volume file (672 bytes, text/*)
2009-07-22 13:28 UTC, Vijay Bellur
no flags Details

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!


Note You need to log in before you can comment on or make changes to this bug.