Bug 1111557 - Brick process crashed while trying to create a file
Summary: Brick process crashed while trying to create a file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Pranith Kumar K
QA Contact:
URL:
Whiteboard:
Depends On: 1110221
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-20 10:39 UTC by Pranith Kumar K
Modified: 2014-11-11 08:35 UTC (History)
7 users (show)

Fixed In Version: glusterfs-3.6.0beta1
Doc Type: Bug Fix
Doc Text:
Clone Of: 1110221
Environment:
Last Closed: 2014-11-11 08:35:38 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Comment 1 Anand Avati 2014-06-20 10:58:53 UTC
REVIEW: http://review.gluster.org/8129 (libglusterfs: Don't allow '-0' as input value for numbers) posted (#1) for review on master by Pranith Kumar Karampuri (pkarampu)

Comment 2 Anand Avati 2014-06-23 03:41:05 UTC
COMMIT: http://review.gluster.org/8129 committed in master by Vijay Bellur (vbellur) 
------
commit f022af610d85e7b7cc4f63bf0491a738b5a6f082
Author: Pranith Kumar K <pkarampu>
Date:   Fri Jun 20 16:06:42 2014 +0530

    libglusterfs: Don't allow '-0' as input value for numbers
    
    Problem:
    io-stats tries to init log-buf-size as uint32. All gf_string2u*** functions
    which get the unsigned values from string don't want the string to contain '-'.
    So the GF_OPTION_INIT with '-0' as value fails init in io-stats, but by that
    time 'ret' is already reset to 0. Io-stats ends up returning 0 even when init
    failed. Because of this caller of init thinks initialization is successful when
    it is not. iostat_xlator->private is still NULL.  Because of this when a fop
    tries to access members of io-stat-private structure, it crashes.
    
    Fix:
    I initially thought may be we should fix all gf_string2u*** functions to
    accept '-0'. But all these functions are used only for setting volume options.
    If we accept '-0', gluster volume info shows output as follows:
    
    diagnostics.brick-log-buf-size: -0
    
    This seemed ugly, so I felt it is better to disallow '-0' as valid input for
    numbers.
    
    Also fixed return value in cases of failures in io-stats.
    
    Change-Id: I67ac92853b6d2be70516ad1d07505ffd9f058aa4
    BUG: 1111557
    Signed-off-by: Pranith Kumar K <pkarampu>
    Reviewed-on: http://review.gluster.org/8129
    Reviewed-by: Krutika Dhananjay <kdhananj>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Harshavardhana <harsha>
    Tested-by: Harshavardhana <harsha>
    Reviewed-by: Vijay Bellur <vbellur>

Comment 3 Anand Avati 2014-06-23 06:59:27 UTC
REVIEW: http://review.gluster.org/8148 (debug/io-stats: Free conf on init failures) posted (#1) for review on master by Pranith Kumar Karampuri (pkarampu)

Comment 4 Anand Avati 2014-06-23 08:54:34 UTC
REVIEW: http://review.gluster.org/8148 (debug/io-stats: Free conf on init failures) posted (#2) for review on master by Pranith Kumar Karampuri (pkarampu)

Comment 5 Anand Avati 2014-06-24 02:24:31 UTC
REVIEW: http://review.gluster.org/8148 (debug/io-stats: Free conf on init failures) posted (#3) for review on master by Pranith Kumar Karampuri (pkarampu)

Comment 6 Anand Avati 2014-06-30 10:44:09 UTC
COMMIT: http://review.gluster.org/8148 committed in master by Vijay Bellur (vbellur) 
------
commit fe59c3485406cda02950e20f57d0ecc0cf964546
Author: Pranith Kumar K <pkarampu>
Date:   Mon Jun 23 12:09:30 2014 +0530

    debug/io-stats: Free conf on init failures
    
    Change-Id: I1d227f7b2b8f8ad8d44df8711654ee885e79cf38
    BUG: 1111557
    Signed-off-by: Pranith Kumar K <pkarampu>
    Reviewed-on: http://review.gluster.org/8148
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Krutika Dhananjay <kdhananj>
    Reviewed-by: Vijay Bellur <vbellur>

Comment 7 Niels de Vos 2014-09-22 12:43:27 UTC
A beta release for GlusterFS 3.6.0 has been released. Please verify if the release solves this bug report for you. In case the glusterfs-3.6.0beta1 release does not have a resolution for this issue, leave a comment in this bug and move the status to ASSIGNED. If this release fixes the problem for you, leave a note and change the status to VERIFIED.

Packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update (possibly an "updates-testing" repository) infrastructure for your distribution.

[1] http://supercolony.gluster.org/pipermail/gluster-users/2014-September/018836.html
[2] http://supercolony.gluster.org/pipermail/gluster-users/

Comment 8 Niels de Vos 2014-11-11 08:35:38 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.6.1, please reopen this bug report.

glusterfs-3.6.1 has been announced [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://supercolony.gluster.org/pipermail/gluster-users/2014-November/019410.html
[2] http://supercolony.gluster.org/mailman/listinfo/gluster-users


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