Bug 990510
Summary: | fd leaks observed while running dbench with "open-behind" volume option set to "on" on a replicate volume | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | spandura | |
Component: | glusterfs | Assignee: | Pranith Kumar K <pkarampu> | |
Status: | CLOSED ERRATA | QA Contact: | spandura | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 2.1 | CC: | amarts, nsathyan, rhs-bugs, vbellur | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.4.0.15rhs | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 991622 (view as bug list) | Environment: | ||
Last Closed: | 2013-09-23 22:35:57 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 991622 |
Description
spandura
2013-07-31 10:42:54 UTC
The bug is resulted whenever application does open on a file and does either unlink of the file or rename on to this file, replacing this file. This fix does necessary unrefs on the fd objects so that close happens on this opened files even in those cases. Please look at http://review.gluster.org/#/c/5493/3/tests/bugs/bug-991622.t for detailed test cases. Verified the fix on the build: =============================== glusterfs 3.4.0.17rhs built on Aug 6 2013 13:47:26 Case 2:- =========== 1. Create a replicate volume (1 x 2). Set the open-behind to on. 2. Create a fuse mount 3. Execute the following from fuse mount exec 5>>test_file1 exec 6>>test_file2 echo "In file1" >&5 echo "In file2" >&6 cat ./test_file1 cat ./test_file2 touch ./test_file3 ls -l ls -l /proc/self/fd rm -f ./test_file1 mv test_file3 test_file2 ls -l ls -l /proc/self/fd // This will list the fd's for files test_file1 and test_file2 (deleted) // Close the fd's. exec 5>&- exec 6>&- Check the /proc/<brick_pid>/fd on both the bricks. There should not be any fd's to file test_file1 and test_file2 . Bug is fixed. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1262.html |