Bug 1243806 - logging: Revert usage of global xlator for log buffer
Summary: logging: Revert usage of global xlator for log buffer
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: logging
Version: mainline
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
Assignee: Soumya Koduri
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1241761 1254436
TreeView+ depends on / blocked
 
Reported: 2015-07-16 11:31 UTC by Soumya Koduri
Modified: 2016-06-16 13:24 UTC (History)
5 users (show)

Fixed In Version: glusterfs-3.8rc2
Clone Of:
: 1254436 (view as bug list)
Environment:
Last Closed: 2016-06-16 13:24:44 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Soumya Koduri 2015-07-16 11:31:12 UTC
Description of problem:
With http://review.gluster.org/#/c/10319/, global_xlator is used for allocations needed for logging so that we don't try to free objects belonging to an already-deleted translator (which will crash). The same global xlator needs to be referred while trying to free those allocations as well.

Comment 1 Anand Avati 2015-07-16 11:48:56 UTC
REVIEW: http://review.gluster.org/11696 (logging: Use global xlator to free log buffer) posted (#1) for review on master by soumya k (skoduri)

Comment 2 Anand Avati 2015-08-06 03:31:21 UTC
REVIEW: http://review.gluster.org/11811 (Revert "core: avoid crashes in gf_msg dup-detection code") posted (#3) for review on master by soumya k (skoduri)

Comment 3 Soumya Koduri 2015-08-06 03:37:17 UTC
Instead, since with http://review.gluster.org/#/c/10417/, struct mem_accnt is no longer embedded in a xlator_t object, but allocated separately, we have decided to revert the workaround provided to avoid crashes in logging infrastructure.

Comment 4 Anand Avati 2015-08-06 08:50:36 UTC
REVIEW: http://review.gluster.org/11811 (logging: Stop using global xlator for log_buf allocations) posted (#4) for review on master by soumya k (skoduri)

Comment 5 Anand Avati 2015-08-08 10:51:28 UTC
COMMIT: http://review.gluster.org/11811 committed in master by Kaleb KEITHLEY (kkeithle) 
------
commit 3e05e2c69979119ca63b1ae5b775019d8bd27d31
Author: Soumya Koduri <skoduri>
Date:   Thu Jul 30 17:03:50 2015 +0530

    logging: Stop using global xlator for log_buf allocations
    
    This reverts commit 765849ee00f6661c9059122ff2346b03b224745f.
    
    With http://review.gluster.org/#/c/10417/, struct mem_accnt
    is no longer embedded in a xlator_t object, but instead is
    allocated separately. Hence this workaround provided to avoid
    crashes in logging infrastructure is no longer needed
    
    BUG: 1243806
    Change-Id: I1bc006172ebe5e417a5923f8be2f37a6277c5e5d
    Signed-off-by: Soumya Koduri <skoduri>
    Reviewed-on: http://review.gluster.org/11811
    Tested-by: NetBSD Build System <jenkins.org>
    Reviewed-by: N Balachandran <nbalacha>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Kaleb KEITHLEY <kkeithle>

Comment 6 Niels de Vos 2016-06-16 13:24:44 UTC
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.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [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://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


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