[Bugs] [Bug 1324381] DHT : If Directory creation is in progress and rename of that Directory comes from another mount point then after both operation few files are not accessible and not listed on mount and more than one Directory have same gfid

bugzilla at redhat.com bugzilla at redhat.com
Wed Apr 6 10:20:57 UTC 2016


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



--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13917 committed in release-3.7 by Raghavendra
G (rgowdapp at redhat.com) 
------
commit 0a01154c68cb5eb884096fc67288a71c391d9160
Author: Sakshi <sabansal at redhat.com>
Date:   Wed Aug 5 16:05:22 2015 +0530

    dht: lock on subvols to prevent rename and lookup selfheal race

    This patch addresses two races while renaming directories:
    1) While renaming src to dst, if a lookup selfheal is triggered
    it can recreate src on those subvols where rename was successful.
    This leads to multiple directories (src and dst) having same gfid.
    To avoid this we must take locks on all subvols with src.

    2) While renaming if the dst exists and a lookup selfheal is
    triggered it will find anomalies in the dst layout and try to
    heal the stale layout. To avoid this we must take lock on any
    one subvol with dst.

    Backport of http://review.gluster.org/#/c/11880/

    > Change-Id: I637f637d3241d9065cd5be59a671c7e7ca3eed53
    > BUG: 1252244
    > Signed-off-by: Sakshi <sabansal at redhat.com>

    Change-Id: I637f637d3241d9065cd5be59a671c7e7ca3eed53
    BUG: 1324381
    Signed-off-by: Sakshi <sabansal at redhat.com>
    Reviewed-on: http://review.gluster.org/13917
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Raghavendra G <rgowdapp 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=rUAivl2dlm&a=cc_unsubscribe


More information about the Bugs mailing list