Bug 822384 - nlm:ulock does not happen after the server is back
Summary: nlm:ulock does not happen after the server is back
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: nfs
Version: pre-release
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Vivek Agarwal
QA Contact: Saurabh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-17 08:34 UTC by Saurabh
Modified: 2016-02-18 00:03 UTC (History)
5 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 17:30:42 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Saurabh 2012-05-17 08:34:47 UTC
Description of problem:
this issue happens when the script is sent for sleep and 
nfs server is restarted after the script holding the lock comes of sleep

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

How reproducible:
always

Steps to Reproduce:
1. create a dist-rep(2x2) volume
2. nfs mount the volume
3. now try to put lock on a file and put the script on sleep for some time.
4. meanwhile kill the gnfs process.
5. when the script is out the sleep , start the gnfs again.
  
Actual results:
 the unlock of the volume fails, with these messages.
 returns:- nlm_get_uniq() returned NULL and  unable to unlock_fd_resume


Expected results:
  this unlock should happen

Additional info:

  the unlock happens when nfs is killed and restarted during the sleep period itself.

Comment 1 Krishna Srinivas 2012-05-18 10:53:45 UTC
during nfs server restart, if nfs server is started after unlock() call, the nfs client does not send a reclaim lock request when it gets SM_NOTIFY before sending the unlock request. And hence the server is unable to find any info related to the unlock call and returns error. nfs server should return success for unlock call if it is not able to find any locks held whenever there is an unlock request. (this is how kernel nfs server behaves)

Comment 2 Krishna Srinivas 2012-07-30 06:43:56 UTC
Commit 04f6cd78fab5a2fa8a02da3be27b080a15aec203 fixes the issue.


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