[Bugs] [Bug 1304988] DHT: Rebalance hang while migrating the files of disperse volume

bugzilla at redhat.com bugzilla at redhat.com
Wed Mar 30 08:51:17 UTC 2016


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



--- Comment #15 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13460 committed in master by Pranith Kumar
Karampuri (pkarampu at redhat.com) 
------
commit 7bbcd6fb692dffc628b723eace8cfcfa466e606f
Author: Ashish Pandey <aspandey at redhat.com>
Date:   Wed Feb 17 15:57:02 2016 +0530

    cluster/ec: Rebalance hangs during rename

    Problem:
    During the rename of a particular file (ec
    is holding blocking inodelk on the parent
    directory), if the rename of another file
    under the same directory comes. EC does not
    release the lock and goes ahead and renames
    the "new" file with the "already held lock".

    That causes rebalance process to be blocked
    on a lock which has been acquired by rename.

    Solution:
    While rename fop comes, ec takes blocking inodelk
    on old and new parent of the file. Before releasing,
    every lock held by ec, it waits for some "time" to
    see if that lock can be reused by the next fop.
    If within this "time" some other request comes,
    it releases this lock based on condition
    "lock count > 1"

    To get this "lock count" for rename fop, we have
    implemented "pl_rename" in feature/lock. Also,
    on ec side, changed the condition to release the lock
    based on the type of fop and old and new parent
    directories.

    Change-Id: I979dbab1185df962e8f305a6074ae1186ffe7db0
    Bug: 1304988
    Signed-off-by: Ashish Pandey <aspandey at redhat.com>
    Reviewed-on: http://review.gluster.org/13460
    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: Pranith Kumar Karampuri <pkarampu at redhat.com>
    Reviewed-by: Krutika Dhananjay <kdhananj 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=bNbe4jB0jA&a=cc_unsubscribe


More information about the Bugs mailing list