Bug 1232179
Summary: | Objects are not signed upon truncate() | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Venky Shankar <vshankar> |
Component: | bitrot | Assignee: | Venky Shankar <vshankar> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | RajeshReddy <rmekala> |
Severity: | unspecified | Docs Contact: | bugs <bugs> |
Priority: | unspecified | ||
Version: | 3.7.0 | CC: | aloganat, bugs, jbyers, mzywusko, nsathyan, rabhat, rmekala |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.7.2 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1227996 | Environment: | |
Last Closed: | 2015-06-20 09:51:28 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: | 1227996 | ||
Bug Blocks: | 1227900 |
Description
Venky Shankar
2015-06-16 08:58:51 UTC
REVIEW: http://review.gluster.org/11300 (features/bitrot: fix fd leak in truncate (stub)) posted (#1) for review on release-3.7 by Venky Shankar (vshankar) COMMIT: http://review.gluster.org/11300 committed in release-3.7 by Raghavendra Bhat (raghavendra) ------ commit c79977c23f6108128043986995fe2eacf35dc6ac Author: Venky Shankar <vshankar> Date: Thu Jun 4 10:07:38 2015 +0530 features/bitrot: fix fd leak in truncate (stub) Backport of http://review.gluster.org/#/c/11077 The need to perform object versioning in the truncate() code path required an fd to reuse existing versioning infrastructure that's used by fd based operations (such as writev(), ftruncate(), etc..). This tempted the use of anonymous fd which was never ever unref()'d after use resulting in fd and/or memory leak depending on the code path taken. Versioning resulted in a dangling file descriptor left open in the filesystem effecting the signing process of a given object (no release() would be trigerred, hence no signing would be performed). On the other hand, cases where the object need not be versioned, the anonymous fd in still ref()'d resulting in memory leak (NOTE: there's no "dangling" file descriptor in this case). Change-Id: I29c3d2af9bbc5cd4b8ddf38954080e3c7a44ba61 BUG: 1232179 Signed-off-by: Venky Shankar <vshankar> Reviewed-on: http://review.gluster.org/11300 Tested-by: Gluster Build System <jenkins.com> Tested-by: NetBSD Build System <jenkins.org> Reviewed-by: Raghavendra Bhat <raghavendra> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.2, please reopen this bug report. glusterfs-3.7.2 has been announced on the Gluster Packaging mailinglist [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://www.gluster.org/pipermail/packaging/2015-June/000006.html [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |