[Bugs] [Bug 1176242] New: glfs_h_creat() leaks file descriptors

bugzilla at redhat.com bugzilla at redhat.com
Fri Dec 19 20:07:18 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1176242

            Bug ID: 1176242
           Summary: glfs_h_creat() leaks file descriptors
           Product: GlusterFS
           Version: mainline
         Component: libgfapi
          Severity: high
          Priority: urgent
          Assignee: ndevos at redhat.com
          Reporter: ndevos at redhat.com
        QA Contact: sdharane at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
When running stress and performance tests against nfs-ganesha, the 
number of open file descriptors increases continously. If the tests run 
long enough, the brick processes will eventually run out of file
descriptors.


Version-Release number of selected component (if applicable):
current master and older versions that have glfs_h_creat()

How reproducible:
100%

Steps to Reproduce:
1. setup nfs-ganesha to export a (single brick) volume
2. create files on an nfs mountpoint
3. check the open file descriptors of the brick process

Actual results:
See the file descriptors of the brick process increase...

Expected results:
Increasing number of descriptors, but see it reduce again too.

Additional info:
This seems to be caused by glfs_h_creat() which allocates a 'struct
glfs_fd', but does not release it. A normal glfs_creat() returns the
file descriptor to the application, whereas glfs_h_creat() returns a
handle (struct glfs_object). The file descriptor associated with the
handle can not be release by glfapi-applications.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=BunmWIRqf2&a=cc_unsubscribe


More information about the Bugs mailing list