[Bugs] [Bug 1248325] New: quota: In enforcer, caching parents in ctx during build ancestry is not working

bugzilla at redhat.com bugzilla at redhat.com
Thu Jul 30 05:42:47 UTC 2015


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

            Bug ID: 1248325
           Summary: quota: In enforcer, caching parents in ctx during
                    build ancestry is not working
           Product: GlusterFS
           Version: 3.7.3
         Component: quota
          Assignee: bugs at gluster.org
          Reporter: vmallika at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com,
                    rgowdapp at redhat.com
        Depends On: 1240949
            Blocks: 1245448



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

In build ancestry, we get the list of parents for a file. These parents are
cached in inode ctx.
This caching is not happening because posix is not setting d_stat information
in the leaf node entry.

--- Additional comment from Anand Avati on 2015-07-08 04:36:55 EDT ---

REVIEW: http://review.gluster.org/11574 (quota: fix parents caching during
build ancestry) posted (#1) for review on master by Vijaikumar Mallikarjuna
(vmallika at redhat.com)

--- Additional comment from Anand Avati on 2015-07-21 23:40:07 EDT ---

REVIEW: http://review.gluster.org/11574 (quota: fix parents caching during
build ancestry) posted (#2) for review on master by Vijaikumar Mallikarjuna
(vmallika at redhat.com)

--- Additional comment from Anand Avati on 2015-07-21 23:43:56 EDT ---

REVIEW: http://review.gluster.org/11574 (quota: fix parents caching during
build ancestry) posted (#3) for review on master by Vijaikumar Mallikarjuna
(vmallika at redhat.com)

--- Additional comment from Anand Avati on 2015-07-22 01:30:28 EDT ---

REVIEW: http://review.gluster.org/11574 (quota: fix parents caching during
build ancestry) posted (#4) for review on master by Vijaikumar Mallikarjuna
(vmallika at redhat.com)

--- Additional comment from Anand Avati on 2015-07-22 02:14:06 EDT ---

REVIEW: http://review.gluster.org/11574 (quota: fix parents caching during
build ancestry) posted (#5) for review on master by Vijaikumar Mallikarjuna
(vmallika at redhat.com)

--- Additional comment from Anand Avati on 2015-07-22 23:57:28 EDT ---

REVIEW: http://review.gluster.org/11574 (quota: fix parents caching during
build ancestry) posted (#6) for review on master by Vijaikumar Mallikarjuna
(vmallika at redhat.com)

--- Additional comment from Anand Avati on 2015-07-29 23:59:01 EDT ---

COMMIT: http://review.gluster.org/11574 committed in master by Raghavendra G
(rgowdapp at redhat.com) 
------
commit de3023c8b5ded9c82414eec153fc660f568b688e
Author: vmallika <vmallika at redhat.com>
Date:   Wed Jul 22 09:02:39 2015 +0530

    quota: fix parents caching during build ancestry

    In build ancestry, we get the list of parents for a file,
    these parents are cached in inode ctx.
    This caching is not happening because posix is not setting
    d_stat information in the leaf node entry
    This patch fixes the issue

    Inode-ctx is not updated with new parent when
    rename performed on same directory.
    This patch fixes the issue

    There is a possibility of caching stale entries,
    consider below example:
    1) build_ancestry invoked on a file
    2) rename is invoked on the same file
    3) buils_ancestry prepared entries of old parent
    4) rename completed and in cbk old parent is replaced with
           new parent in inode ctx
    5) now build_ancestry cbk adds old parent to inode ctx

    In this patch we also remove stale entries in writev and fallocate

    Change-Id: Ib1854a41b47b14eb775326588352015c83d034de
    BUG: 1240949
    Signed-off-by: vmallika <vmallika at redhat.com>
    Reviewed-on: http://review.gluster.org/11574
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1240949
[Bug 1240949] quota: In enforcer, caching parents in ctx during build
ancestry is not working
https://bugzilla.redhat.com/show_bug.cgi?id=1245448
[Bug 1245448] quota: In enforcer, caching parents in ctx during build
ancestry is not working
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list