[Bugs] [Bug 1460661] "split-brain observed [Input/output error]" error messages in samba logs during parallel rm -rf

bugzilla at redhat.com bugzilla at redhat.com
Mon Jun 19 04:54:49 UTC 2017


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



--- Comment #3 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/17518 committed in release-3.8 by jiffin
tony Thottan (jthottan at redhat.com) 
------
commit 5d13784dc6aa406f69061f2608a19ef0c8a80581
Author: Ravishankar N <ravishankar at redhat.com>
Date:   Mon Jun 5 09:40:51 2017 +0530

    afr: add errno to afr_inode_refresh_done()

    Backport of https://review.gluster.org/17413 and
    https://review.gluster.org/17436

    Problem:
    When parellel `rm -rf`s were being done from cifs clients, opendir might
    fail on some replicas with ENOENT. DHT ignores partial opendir failures
    in dht_fd_cbk() and winds readdirs on those replicas. Afr inode refresh
    (as a part of readdirp read_txn) sees in its fd context that the state
    of the fds is *not* AFR_FD_OPENED and bails out to
    afr_inode_refresh_done() without doing a refresh. When this happens, the
    errno is set as EIO due to lack of readable subvols, logging split-brain
    messages in the logs.

    Fix:
    Introduce an errno argument to afr_inode_refresh_do() to bail out with
    the right error value when inode refresh is not performed.

    Change-Id: I8eed4d6e6c85332c1f5813c74cb54ae73693a369
    BUG: 1460661
    Signed-off-by: Ravishankar N <ravishankar at redhat.com>
    Reviewed-on: https://review.gluster.org/17518
    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=Le4GuPRhaz&a=cc_unsubscribe


More information about the Bugs mailing list