Bug 764298 (GLUSTER-2566) - NFS read hangs when arequal-checksum script is run
Summary: NFS read hangs when arequal-checksum script is run
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2566
Product: GlusterFS
Classification: Community
Component: nfs
Version: mainline
Hardware: x86_64
OS: Solaris
medium
medium
Target Milestone: ---
Assignee: Shehjar Tikoo
QA Contact:
URL:
Whiteboard:
: 764277 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-21 07:19 UTC by shishir gowda
Modified: 2013-12-09 01:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTP
Mount Type: nfs
Documentation: DNR
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description shishir gowda 2011-03-21 07:19:29 UTC
When NFS open call fails (seen here due to a bug in quick-read open), the FH gets queued.

Subsequent FH open calls get queued and hence the read call is blocked.

Comment 1 Shehjar Tikoo 2011-03-22 05:43:53 UTC
arequal script hangs because the read replies are not being sent by the NFS server running on Solaris.

NFS, on seeing the first read call, opens the file and then handles the read request in a second step. If the open call fails, the error is supposed to be returned to the NFS client as part of the READ reply. This is not happening and is a bug. A patch has been sent.

The second part of the problem is in quick-read where the use of O_DIRECTORY in open is not a portable piece of code. Solaris does not have O_DIRECTORY and is defined to 0 by our build scripts. The zero value results in the failure of the open fop in quick-read. This prevents the open fop from even reaching the brick. This is the second bug and is pending a fix.

Comment 2 Anush Shetty 2011-03-22 06:42:21 UTC
*** Bug 2545 has been marked as a duplicate of this bug. ***

Comment 3 Vijay Bellur 2011-03-22 10:04:33 UTC
PATCH: http://patches.gluster.com/patch/6556 in release-3.1 (Solaris: redefine O_DIRECTORY flag to the correct value)

Comment 4 Vijay Bellur 2011-03-22 10:04:42 UTC
PATCH: http://patches.gluster.com/patch/6531 in release-3.1 (nfs3: Flush file I/O call states on open failure)

Comment 5 Vijay Bellur 2011-03-25 08:11:43 UTC
PATCH: http://patches.gluster.com/patch/6532 in master (nfs3: Flush file I/O call states on open failure)


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