+++ 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.
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)
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>
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