Bug 761981 (GLUSTER-249)

Summary: Self heal of a file that does not exist on the first subvolume
Product: [Community] GlusterFS Reporter: Vikas Gorur <vikas>
Component: replicateAssignee: Vikas Gorur <vikas>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs
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: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vikas Gorur 2009-09-07 13:02:47 UTC
Fix this "known issue" in replicate:

 Self-heal of a file that does not exist on the first subvolume:

If a file does not exist on the first subvolume but exists on some other subvolume, it will not show up in the output of 'ls'. This is because the replicate translator fetches the directory listing only from the first subvolume. Thus, the file that does not exist on the first subvolume is never seen and never healed. However, if you know the name of the file and do a 'stat' on the file or try to access it in any other way, the file will be properly healed and created on the first subvolume.

Comment 1 Anand Avati 2009-11-13 07:13:35 UTC
PATCH: http://patches.gluster.com/patch/2194 in master (cluster/dht: Do readdir in dht_readdir instead of readdirp)

Comment 2 Anand Avati 2009-11-13 07:13:38 UTC
PATCH: http://patches.gluster.com/patch/2195 in master (mount/fuse: Do readdirp in fuse_readdir.)

Comment 3 Anand Avati 2009-11-13 07:13:42 UTC
PATCH: http://patches.gluster.com/patch/2196 in master (cluster/afr: Refactored inode context bitmasks.)

Comment 4 Anand Avati 2009-11-13 07:13:46 UTC
PATCH: http://patches.gluster.com/patch/2197 in master (cluster/afr: Ensure directory contents are in sync during opendir.)

Comment 5 Anand Avati 2009-11-19 05:53:01 UTC
PATCH: http://patches.gluster.com/patch/2308 in master (cluster/afr: Handle op_ret properly in opendir_cbk)

Comment 6 Anand Avati 2009-11-24 10:23:03 UTC
PATCH: http://patches.gluster.com/patch/2340 in master (cluster/afr: Fix double-free in opendir self-heal callback.)

Comment 7 Anand Avati 2009-11-24 10:23:07 UTC
PATCH: http://patches.gluster.com/patch/2345 in master (cluster/afr: Fix inode context bitmasks.)