[Bugs] [Bug 1443319] Don't wind post-op on a brick where the fop phase failed.

bugzilla at redhat.com bugzilla at redhat.com
Sat Apr 29 11:26:27 UTC 2017


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



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/17082 committed in release-3.8 by Niels de
Vos (ndevos at redhat.com) 
------
commit a6d313d12c98cf533c6bbb10f491dd2ec48ca89c
Author: Ravishankar N <ravishankar at redhat.com>
Date:   Wed Apr 19 16:40:05 2017 +0530

    afr: don't do a post-op on a brick if op failed

    Problem:
    In afr-v2, self-blaming xattrs are not there by design. But if the FOP
    failed on a brick due to an error other than ENOTCONN (or even due to
    ENOTCONN, but we regained connection before postop was wound), we wind
    the post-op also on the failed brick, leading to setting self-blaming
    xattrs on that brick. This can lead to undesired results like healing of
    files in split-brain etc.

    Fix:
    If a fop failed on a brick on which pre-op was successful, do not
    perform post-op on it. This also produces the desired effect of not
    resetting the dirty xattr on the brick, which is how it should be
    because if the fop failed on a brick, there is no reason to clear the
    dirty bit which actually serves as an indication of the failure.

    > Reviewed-on: https://review.gluster.org/16976
    > Smoke: Gluster Build System <jenkins at build.gluster.org>
    > NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    > CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    > Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>

    Change-Id: I5f1caf4d1b39f36cf8093ccef940118638caa9c4
    BUG: 1443319
    Signed-off-by: Ravishankar N <ravishankar at redhat.com>
    Reviewed-on: https://review.gluster.org/17082
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>

-- 
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=X45lEKLiWZ&a=cc_unsubscribe


More information about the Bugs mailing list