summaryrefslogtreecommitdiffstats
path: root/doc/release-notes/6.5.md
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2019-07-29 16:22:10 +0530
committerhari gowtham <hari.gowtham005@gmail.com>2019-08-07 05:07:56 +0000
commitaa45fcc1384ea6120d582cdad35b1d610e6437af (patch)
treef6df4f4976bd99b8c657bd7e001b8241c831ed13 /doc/release-notes/6.5.md
parent05f9dc24e13df9f993438ee9b98b7a1052cf8b12 (diff)
posix/ctime: Fix race during lookup ctime xattr heal
Problem: Ctime heals the ctime xattr ("trusted.glusterfs.mdata") in lookup if it's not present. In a multi client scenario, there is a race which results in updating the ctime xattr to older value. e.g. Let c1 and c2 be two clients and file1 be the file which doesn't have the ctime xattr. Let the ctime of file1 be t1. (from backend, ctime heals time attributes from backend when not present). Now following operations are done on mount c1 -> ls -l /mnt/file1 | c2 -> ls -l /mnt/file1;echo "append" >> /mnt/file1; The race is that the both c1 and c2 didn't fetch the ctime xattr in lookup, so both of them tries to heal ctime to time 't1'. If c2 wins the race and appends the file before c1 heals it, it sets the time to 't1' and updates it to 't2' (because of append). Now c1 proceeds to heal and sets it to 't1' which is incorrect. Solution: Compare the times during heal and only update the larger time. This is the general approach used in ctime feature but got missed with healing legacy files. Backport of: > Patch: https://review.gluster.org/23131 > BUG: 1734299 > Change-Id: I930bda192c64c3d49d0aed431ce23d3bc57e51b7 > Signed-off-by: Kotresh HR <khiremat@redhat.com> fixes: bz#1737745 Change-Id: I930bda192c64c3d49d0aed431ce23d3bc57e51b7 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'doc/release-notes/6.5.md')
0 files changed, 0 insertions, 0 deletions