Bug 762904 (GLUSTER-1172)

Summary: ls -lh on NFS mount of 2-mirror replicate gives incorrect file size
Product: [Community] GlusterFS Reporter: Shehjar Tikoo <shehjart>
Component: replicateAssignee: shishir gowda <sgowda>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: nfs-alphaCC: amarts, gluster-bugs, nsathyan, vijay
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTP Mount Type: nfs
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Shehjar Tikoo 2010-07-20 03:39:21 UTC
Regression test to be done as part of http://test.gluster.com/show_bug.cgi?id=86

Comment 1 Shehjar Tikoo 2010-07-20 06:19:18 UTC
During dd IO on a file that resides on the NFS mount point, which is in fact a replicated backend, say one replica goes down and comes back up only after dd has finished. The situation will result in an inconsistent file on one node and a consistent one on the mirror that was always up.
If we do ls -lh on the NFS mount after the dd completes and with the failed node now back up, the ls -lh returns the file size from the inconsistent replica.

Comment 2 Shehjar Tikoo 2010-09-17 05:44:20 UTC
Setting mount type to nfs to help me keep track of bugs reported in components outside gnfs but seen over an nfs mount as compared to the fuse mount.

Comment 3 Amar Tumballi 2010-09-21 03:55:36 UTC
issue with metadata self heal not being done properly.

Comment 4 Vijay Bellur 2010-09-29 10:34:40 UTC
PATCH: http://patches.gluster.com/patch/5086 in master (replicate: keep read_child in inode ctx as up-to-date as possible)

Comment 5 Anand Avati 2011-02-22 07:11:23 UTC
PATCH: http://patches.gluster.com/patch/6054 in master (replicate: set read-child to the subvolume which replied first (fastest))