Bug 1730229 - Fix memory leaks that are present even after an xlator fini [client side xlator]
Summary: Fix memory leaks that are present even after an xlator fini [client side xlator]
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: 7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On: 1716695
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-16 09:07 UTC by Mohammed Rafi KC
Modified: 2020-02-10 17:42 UTC (History)
3 users (show)

Fixed In Version:
Clone Of: 1716695
Environment:
Last Closed: 2020-02-10 17:42:08 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gluster.org Gerrit 23056 0 None Open graph/shd: Use glusterfs_graph_deactivate to free the xl rec 2019-07-24 10:23:50 UTC
Gluster.org Gerrit 23057 0 None Open graph/shd: Use top down approach while cleaning xlator 2019-07-24 10:27:04 UTC

Description Mohammed Rafi KC 2019-07-16 09:07:10 UTC
+++ This bug was initially created as a clone of Bug #1716695 +++

Description of problem:

There are quite a few memory leaks identified for client side xlators.
1) xlators/cluster/afr/src/afr.c ---> this->local_pool is not freed
2) xlators/cluster/ec/src/ec.c  ----> this->itable is not freed
3) protocol/client/src/client.c ----> this->local_pool is not freed

I will add more to this list in case if I found any other leaks

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Worker Ant on 2019-06-04 00:19:02 UTC ---

REVIEW: https://review.gluster.org/22806 (afr/fini: Free local_pool data during an afr fini) posted (#1) for review on master by mohammed rafi  kc

--- Additional comment from Worker Ant on 2019-06-04 00:20:15 UTC ---

REVIEW: https://review.gluster.org/22807 (ec/fini: Free itable during an ec fini) posted (#1) for review on master by mohammed rafi  kc

--- Additional comment from Worker Ant on 2019-06-17 07:06:11 UTC ---

REVIEW: https://review.gluster.org/22806 (afr/fini: Free local_pool data during an afr fini) merged (#3) on master by Pranith Kumar Karampuri

--- Additional comment from Worker Ant on 2019-06-20 08:38:02 UTC ---

REVIEW: https://review.gluster.org/22904 (graph/shd: Use glusterfs_graph_deactivate to free the xl rec) posted (#1) for review on master by mohammed rafi  kc

--- Additional comment from Worker Ant on 2019-06-27 06:04:44 UTC ---

REVIEW: https://review.gluster.org/22904 (graph/shd: Use glusterfs_graph_deactivate to free the xl rec) merged (#8) on master by Pranith Kumar Karampuri

--- Additional comment from Worker Ant on 2019-06-27 13:53:18 UTC ---

REVIEW: https://review.gluster.org/22968 (graph/shd: Use top down approach while cleaning xlator) posted (#1) for review on master by mohammed rafi  kc

--- Additional comment from Worker Ant on 2019-06-27 18:25:41 UTC ---

REVIEW: https://review.gluster.org/22968 (graph/shd: Use top down approach while cleaning xlator) merged (#3) on master by mohammed rafi  kc

Comment 1 Worker Ant 2019-07-16 09:19:31 UTC
REVIEW: https://review.gluster.org/23056 (graph/shd: Use glusterfs_graph_deactivate to free the xl rec) posted (#2) for review on release-7 by mohammed rafi  kc

Comment 2 Worker Ant 2019-07-16 09:20:46 UTC
REVIEW: https://review.gluster.org/23057 (graph/shd: Use top down approach while cleaning xlator) posted (#2) for review on release-7 by mohammed rafi  kc

Comment 3 Worker Ant 2019-07-16 09:21:58 UTC
REVIEW: https://review.gluster.org/23058 (glusterd/svc: update pid of mux volumes from the shd process) posted (#2) for review on release-7 by mohammed rafi  kc

Comment 4 Worker Ant 2019-07-24 05:55:34 UTC
REVISION POSTED: https://review.gluster.org/23058 (glusterd/svc: update pid of mux volumes from the shd process) posted (#3) for review on release-7 by mohammed rafi  kc

Comment 5 Worker Ant 2019-07-24 10:23:52 UTC
REVIEW: https://review.gluster.org/23056 (graph/shd: Use glusterfs_graph_deactivate to free the xl rec) merged (#3) on release-7 by Rinku Kothiya

Comment 6 Worker Ant 2019-07-24 10:27:05 UTC
REVIEW: https://review.gluster.org/23057 (graph/shd: Use top down approach while cleaning xlator) merged (#3) on release-7 by Rinku Kothiya

Comment 7 Sunny Kumar 2020-02-10 17:42:08 UTC
Patch is merged closing this bug now.


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