Bug 764870 (GLUSTER-3138) - [release-3.2]: ls shows 2 entries
Summary: [release-3.2]: ls shows 2 entries
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-3138
Product: GlusterFS
Classification: Community
Component: replicate
Version: 3.2.1
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Pranith Kumar K
QA Contact:
URL:
Whiteboard:
: GLUSTER-3079 GLUSTER-3274 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-06 16:22 UTC by Raghavendra Bhat
Modified: 2011-08-01 09:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTNR
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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. ***


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