[Bugs] [Bug 1144485] DHT : - two directories have same gfid

bugzilla at redhat.com bugzilla at redhat.com
Fri Sep 19 16:46:15 UTC 2014


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



--- Comment #3 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/8783 committed in release-3.6 by Vijay Bellur
(vbellur at redhat.com) 
------
commit a2e0602c0910ee448b4e8badeb00eed2a78ea452
Author: Raghavendra G <rgowdapp at redhat.com>
Date:   Fri Sep 19 10:07:53 2014 -0400

    storage/posix: Log when mkdir is on an existing gfid but non-existent
    path.

    consider following steps on a distribute volume

    1. rename (src, dst) on hashed subvolume
    2. snapshot taken
    3. restore snapshots and do stat on src and dst

    Now, we end up with two directories src and dst having same gfid,
    because of distribute creating directories on non-existent subvolumes
    as part of directory healing.

    This can happen even with race between rename and directory healing in
    dht-lookup. This can lead to undefined behaviour while accessing any
    of both directories. Hence, we are logging paths of both
    directories, so that a sysadmin can take some corrective action when
    (s)he sees this log. One of the corrective action can be to copy
    contents of both directories from backend into a new directory and
    delete both directories.

    Since effort involved to fix this issue is non-trivial, giving this
    workaround till we come up with a fix.

    Change-Id: I38f4520e6787ee33180a9cd1bf2f36f46daea1ea
    BUG: 1144485
    Signed-off-by: Raghavendra G <rgowdapp at redhat.com>
    Reviewed-on-master: http://review.gluster.org/8008
    Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
    Reviewed-by: Vijay Bellur <vbellur at redhat.com>
    Tested-by: Vijay Bellur <vbellur at redhat.com>
    Reviewed-on: http://review.gluster.org/8783
    Tested-by: Gluster Build System <jenkins at build.gluster.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=pc6aMFlje6&a=cc_unsubscribe


More information about the Bugs mailing list