[Bugs] [Bug 1355609] [granular entry sh] - Clean up (stale) directory indices in the event of an `rm -rf` and also in the normal flow while a brick is down

bugzilla at redhat.com bugzilla at redhat.com
Fri Jul 15 13:43:16 UTC 2016


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



--- Comment #7 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/14920 committed in release-3.8 by Jeff Darcy
(jdarcy at redhat.com) 
------
commit 6c4908fe3f1a0b7900089b307b311940a2b7e1a1
Author: Krutika Dhananjay <kdhananj at redhat.com>
Date:   Mon Jun 27 15:21:26 2016 +0530

    afr, index: Clean up stale directory and file indices in granular entry sh

        Backport of: http://review.gluster.org/14832

    Specifically when a directory tree is removed (rm -rf)
    while a brick is down, both the directory index and the
    name indices of the files and subdirs under it will remain.
    Self-heal will need to pick up these and remove them.

    Towards this, afr sh will now also crawl indices/entry-changes
    and call an rmdir on the dir if the directory index is stale.

    On the brick side, rmdir fop has been implemented for index xl,
    which would delete the directory index and its contents if present
    in a synctask.

    Change-Id: I08f45201adca56737ec2be1aab5433aebaefefd0
    BUG: 1355609
    Signed-off-by: Krutika Dhananjay <kdhananj at redhat.com>
    Reviewed-on: http://review.gluster.org/14920
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    Reviewed-by: Ravishankar N <ravishankar at redhat.com>
    Reviewed-by: Jeff Darcy <jdarcy 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=PgvJBiPeUD&a=cc_unsubscribe


More information about the Bugs mailing list