[Bugs] [Bug 1449329] When either killing or restarting a brick with performance.stat-prefetch on , stat sometimes returns a bad st_size value.

bugzilla at redhat.com bugzilla at redhat.com
Thu May 11 06:34:50 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1449329



--- Comment #3 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/17227 committed in master by Pranith Kumar
Karampuri (pkarampu at redhat.com) 
------
commit 1a8fa910ccba7aa941f673302c1ddbd7bd818e39
Author: Ravishankar N <ravishankar at redhat.com>
Date:   Tue May 9 02:31:39 2017 +0530

    afr: send the correct iatt values in fsync cbk

    Problem:
    afr unwinds the fsync fop with an iatt buffer from one of its children
    on whom fsync was successful. But that child might not be a valid read
    subvolume for that inode because of pending heals or because it happens
    to be the arbiter brick etc. Thus we end up sending the wrong iatt to
    mdcache which will in turn serve it to the application on a subsequent
    stat call as reported in the BZ.

    Fix:
    Pick a child on whom the fsync was successful *and* that is readable as
    indicated in the inode context.

    Change-Id: Ie8647289219cebe02dde4727e19a729b3353ebcf
    BUG: 1449329
    RCA'ed-by: Miklós Fokin <miklos.fokin at appeartv.com>
    Signed-off-by: Ravishankar N <ravishankar at redhat.com>
    Reviewed-on: https://review.gluster.org/17227
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    Smoke: Gluster Build System <jenkins at build.gluster.org>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=oHNSb4ot68&a=cc_unsubscribe


More information about the Bugs mailing list