Bug 1328443 - [RHEL-6] gluster-swift: During GETs, duplicate fd leaks for files that need Etag recomputed
Summary: [RHEL-6] gluster-swift: During GETs, duplicate fd leaks for files that need E...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-swift
Version: rhgs-3.1
Hardware: All
OS: All
high
high
Target Milestone: ---
: RHGS 3.1.3
Assignee: Prashanth Pai
QA Contact: surabhi
URL:
Whiteboard:
Depends On: 1314622
Blocks: 1299184
TreeView+ depends on / blocked
 
Reported: 2016-04-19 11:57 UTC by Prashanth Pai
Modified: 2016-06-23 05:36 UTC (History)
7 users (show)

Fixed In Version: swiftonfile-1.13.1-7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1314622
Environment:
Last Closed: 2016-06-23 05:36:15 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1246 0 normal SHIPPED_LIVE gluster-swift update for Red Hat Gluster Storage 3.1 update 3 2016-06-23 09:12:59 UTC

Comment 2 Prashanth Pai 2016-04-22 07:11:56 UTC
Backport posted here: https://code.engineering.redhat.com/gerrit/#/c/72852/

Comment 3 surabhi 2016-04-26 12:54:20 UTC
1. PUT an object with some data :
curl -i -d "swiftonfile" http://localhost:8080/v1/AUTH_test/c1/file1 -X PUT

2. curl -i http://localhost:8080/v1/AUTH_test/c1/file1 -X GET

3. Observe the process by attaching to strace:
strace -ff -p 10245 -e open,close,dup

Process 19074 attached with 21 threads
[pid 19074] open("/mnt/gluster-object/test/c1/file1", O_RDONLY|O_CLOEXEC) = 10
[pid 19074] close(10)                   = 0
[pid 19074] close(6)                    = 0


4. # echo "aaaaaaaaaaa" > /mnt/gluster-object/test/c1/file1

[pid 19074] open("/mnt/gluster-object/test/c1/file1", O_RDONLY|O_CLOEXEC) = 10
[pid 19074] dup(10)                     = 12
[pid 19074] close(12)                   = 0
[pid 19074] close(10)                   = 0

5. # curl -i http://localhost:8080/v1/AUTH_test/c1/file1 -X GET

Process 19074 attached with 21 threads
[pid 19074] open("/mnt/gluster-object/test/c1/file1", O_RDONLY|O_CLOEXEC) = 10
[pid 19074] close(10)                   = 0
[pid 19074] close(6)                    = 0
[pid 19074] open("/mnt/gluster-object/test/c1/file1", O_RDONLY|O_CLOEXEC) = 10
[pid 19074] dup(10)                     = 12
[pid 19074] close(12)                   = 0
[pid 19074] close(10)                   = 0
[pid 19074] close(6)                    = 0

ls -l /proc/19074/fd | grep file1


No fd leaks observed.Marking the BZ verified.

swiftonfile-1.13.1-7.el6rhs.noarch

Comment 5 errata-xmlrpc 2016-06-23 05:36:15 UTC
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.

https://access.redhat.com/errata/RHEA-2016:1246


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