[Bugs] [Bug 1585894] New: posix/ctime: EC self heal of directory is blocked with ctime feature enabled

bugzilla at redhat.com bugzilla at redhat.com
Tue Jun 5 02:40:52 UTC 2018


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

            Bug ID: 1585894
           Summary: posix/ctime: EC self heal of directory is blocked with
                    ctime feature enabled
           Product: GlusterFS
           Version: 4.1
         Component: posix
          Assignee: bugs at gluster.org
          Reporter: khiremat at redhat.com
                CC: bugs at gluster.org
        Depends On: 1584981



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

Description of problem:
EC self heal of directory is blocked with ctime feature enabled.
It's found out that trusted.glusterfs.mdata xattr's value is differnt
among the EC subvolume set. If that happens, it is expected EC can't
heal the xattr and hence it's blocked

Version-Release number of selected component (if applicable):
mainline

How reproducible:
Most of the times

Steps to Reproduce:
Run following EC test case found in gluster repo.
1. prove -v ./tests/bugs/ec/bug-1547662.t


Actual results:
The test case fails most of the times 

Expected results:
The test case should always pass

Additional info:

--- Additional comment from Worker Ant on 2018-06-01 02:09:28 EDT ---

REVIEW: https://review.gluster.org/20120 (posix/ctime: Fix fops racing in
updating mtime/atime) posted (#1) for review on master by Kotresh HR

--- Additional comment from Worker Ant on 2018-06-03 05:10:16 EDT ---

COMMIT: https://review.gluster.org/20120 committed in master by "Amar Tumballi"
<amarts at redhat.com> with a commit message- posix/ctime: Fix fops racing in
updating mtime/atime

In distributed systems, there could be races with fops
updating mtime/atime which could result in different
mtime/atime for same file. So updating them only if
time is greater than the existing makes sure, only
the highest time is retained. If the mtime/atime
update comes from the explicit utime syscall, it is
allowed to set to previous time.

Thanks Xavi for helping in rooting the issue.

fixes: bz#1584981
Change-Id: If1230a75b96d7f9a828795189fcc699049e7826e
Signed-off-by: Kotresh HR <khiremat at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1584981
[Bug 1584981] posix/ctime: EC self heal of directory is blocked with ctime
feature enabled
-- 
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