[Bugs] [Bug 1144274] New: Need ability to heal mismatching user extended attributes without any changelogs

bugzilla at redhat.com bugzilla at redhat.com
Fri Sep 19 06:42:49 UTC 2014


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

            Bug ID: 1144274
           Summary: Need ability to heal mismatching user extended
                    attributes without any changelogs
           Product: GlusterFS
           Version: 3.6.0
         Component: replicate
          Assignee: gluster-bugs at redhat.com
          Reporter: ravishankar at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com,
                    pkarampu at redhat.com
        Depends On: 1134691, 1078061



+++ This bug was initially created as a clone of Bug #1134691 +++

+++ This bug was initially created as a clone of Bug #1078061 +++

Description of problem:

For snapshot design it was decided that frequent operations like 'cp -a
<large-dir>' should not pause while taking snapshots. This can lead to
metadata/xattr mismatches without any afr changelogs because those fops are not
going to be blocked while taking snapshots on different bricks. Afr at the time
of lookup detects metadata mismatches in stat structures and initiates a
self-heal. But if there are any xattr mismatches between two replicas then
there is no capability at the moment to detect and heal them. This enhancement
tracks the changes required to achieve this change.

For afr to detect there are mismatches in xattrs, it should be able to query
i.e. listxattr in lookup itself, to avoid extra over the network listxattr call
latencies.
This requires changes in posix xlator.

Afr should use this feature in posix to 'listxattr' and see if there are any
mismatches and trigger self-heals on that file probably at the time of
fresh-lookup. This behaviour can be exposed in volumes that are exported as
part of snapshot.


--- Additional comment from Anand Avati on 2014-09-06 01:19:38 EDT ---

COMMIT: http://review.gluster.org/8558 committed in master by Pranith Kumar
Karampuri (pkarampu at redhat.com) 
------
commit 15a2088da508539a292f2a1863377dc40d264c8c
Author: Ravishankar N <ravishankar at redhat.com>
Date:   Wed Sep 3 20:49:53 2014 +0000

    cluster/afr: perform list-xattr during lookup

    Detect and heal mismatching user extended attributes during lookup.
    'Forward' port of http://review.gluster.org/#/c/7444/

    Change-Id: Id03c9746f083ffd3014711d0b3a2e5a71a45eed4
    BUG: 1134691
    Signed-off-by: Ravishankar N <ravishankar at redhat.com>
    Reviewed-on: http://review.gluster.org/8558
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
    Tested-by: Pranith Kumar Karampuri <pkarampu at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1078061
[Bug 1078061] Need ability to heal mismatching user extended attributes
without any changelogs
https://bugzilla.redhat.com/show_bug.cgi?id=1134691
[Bug 1134691] Need ability to heal mismatching user extended attributes
without any changelogs
-- 
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=qo5wWpaFpS&a=cc_unsubscribe


More information about the Bugs mailing list