Bug 1164506 - md-cache checks for modification using whole seconds only
Summary: md-cache checks for modification using whole seconds only
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Niels de Vos
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1158126
TreeView+ depends on / blocked
 
Reported: 2014-11-15 22:29 UTC by Niels de Vos
Modified: 2015-05-14 17:44 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.7.0
Doc Type: Bug Fix
Doc Text:
Clone Of: 1158126
Environment:
Last Closed: 2015-05-14 17:28:28 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Niels de Vos 2014-11-15 22:29:17 UTC
+++ This bug was initially created as a clone of Bug #1158126 +++

This is one of the "other bugs" mentioned in bug #1158120.

When md-cache checks for an updated mtime/ctime in order to see if it should request a cache invalidation, it only looks at the whole-second "mtime" and "ctime" fields. If a file was modified a fraction of a second after the time of the cached data, md-cache won't notice the change.

The attached patch makes md-cache look at the mtime_nsec and ctime_nsec fields too.

Comment 1 Anand Avati 2014-11-15 22:34:39 UTC
REVIEW: http://review.gluster.org/9131 (md-cache: check mtime_nsec and ctime_nsec fields for changes too) posted (#1) for review on master by Niels de Vos (ndevos)

Comment 2 Anand Avati 2014-11-20 07:01:31 UTC
COMMIT: http://review.gluster.org/9131 committed in master by Vijay Bellur (vbellur) 
------
commit 33800b332ec7aa70fa14809c1030cfabaddc02a0
Author: Niels de Vos <ndevos>
Date:   Sat Nov 15 23:30:31 2014 +0100

    md-cache: check mtime_nsec and ctime_nsec fields for changes too
    
    When md-cache checks for an updated mtime/ctime in order to see if it
    should request a cache invalidation, it only looks at the whole-second
    "mtime" and "ctime" fields. If a file was modified a fraction of a
    second after the time of the cached data, md-cache won't notice the
    change.
    
    BUG: 1164506
    Change-Id: Ieb7baa46f84489d2d7ea8d60a7fb2595564eb955
    Original-author: Philip Spencer <pspencer.ca>
    Signed-off-by: Niels de Vos <ndevos>
    Reviewed-on: http://review.gluster.org/9131
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Xavier Hernandez <xhernandez>
    Reviewed-by: Vijay Bellur <vbellur>

Comment 3 Niels de Vos 2015-05-14 17:28:28 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.

glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user

Comment 4 Niels de Vos 2015-05-14 17:35:43 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.

glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user

Comment 5 Niels de Vos 2015-05-14 17:38:05 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.

glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user

Comment 6 Niels de Vos 2015-05-14 17:44:50 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.

glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


Note You need to log in before you can comment on or make changes to this bug.