Bug 810079

Summary: Handle failures of open fd migration from old graph to new graph
Product: [Community] GlusterFS Reporter: Junaid <junaid>
Component: coreAssignee: Amar Tumballi <amarts>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: gluster-bugs, vagarwal, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-05 05:49:41 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 Junaid 2012-04-05 05:35:53 UTC
Description of problem:
After a graph switch from old graph to new graph, all the open fd's corresponding to the old graph must be opened freshly on the new graph. If the open fails, the error is not handled. Hence, any other operations are still allowed to proceed.

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

How reproducible:
Always

Steps to Reproduce:
1. Open a file, then acquire a lock on the file
2. Execute a volume set command that will change the graph, like volume quota vol enable/disable
3. Acquire another lock on same fd from the same application on the same range. It will fail. Which means that the fd is in bad state because the owner of the lock that is being requested is this fd, hence the lock must have been granted.
4. Perform any other operation like read, write etc on the fd they will succeed.
5. Happens only when there is a graph switch.

Actual results:
File operations succeed.

Expected results:
File operations should return EBADFD error

Additional info:

Comment 1 Junaid 2012-04-05 05:49:41 UTC

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