Bug 764870 (GLUSTER-3138)

Summary: [release-3.2]: ls shows 2 entries
Product: [Community] GlusterFS Reporter: Raghavendra Bhat <rabhat>
Component: replicateAssignee: Pranith Kumar K <pkarampu>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 3.2.1CC: gluster-bugs, jdarcy, joe, j.page, vijay
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vijay Bellur 2011-07-06 16:10:04 UTC
The problem is with read_child in afr. If the read_child changes in between 2 consecutive readdir()s, mostly due to revalidates, readdir()s happen from different subvolumes, resulting in erroneous offsets and hence causing duplication/less entries than the actual in readdir().

Comment 1 Raghavendra Bhat 2011-07-06 16:22:52 UTC
Replicate volume with replica count 2. Created a directory on the mount point and chowned it to the normal user and started running tests as normal user in that directory. (1 fuse, 1 - 3.2.1 fuse client and 1 nfs client). Did selfheal tests parallel selfheal, kernel untar and rm of untarred kernel in parallel etc. 

Arequal checksum of the linux kernel directory shows different checksum (also different number of files) for each run where as the backend checksums are same.


doing ls on the mount point shows 2 entries of the directory some times(where the tests aree being run as normal user).

Comment 2 Vijay Bellur 2011-07-07 09:45:30 UTC
PATCH: http://patches.gluster.com/patch/7784 in release-3.2 (cluster/afr: previous read_child should take precedence over priv->read_child)

Comment 3 Vijay Bellur 2011-07-07 09:45:36 UTC
PATCH: http://patches.gluster.com/patch/7785 in release-3.2 (cluster/afr: save xattr of all the children in lookup_cbk)

Comment 4 Raghavendra Bhat 2011-07-14 03:16:05 UTC
Its fixed now and now ls does not show 2 entries and the arequal-checksum is also correct.

Comment 5 Anand Avati 2011-07-17 11:47:16 UTC
PATCH: http://patches.gluster.com/patch/7888 in release-3.1 (cluster/afr: save xattr of all the children in lookup_cbk)

Comment 6 Anand Avati 2011-07-17 11:47:23 UTC
PATCH: http://patches.gluster.com/patch/7889 in release-3.1 (cluster/afr: previous read_child should take precedence over priv->read_child)

Comment 7 Raghavendra Bhat 2011-07-29 05:15:59 UTC
Repeated the test. i.e. untarred linux kernel. Arequal checksum of the untarred directory on the mount point and the backend was same.

Comment 8 Pranith Kumar K 2011-08-01 03:53:52 UTC
*** Bug 3079 has been marked as a duplicate of this bug. ***

Comment 9 Joe Julian 2011-08-01 06:21:34 UTC
*** Bug 3274 has been marked as a duplicate of this bug. ***