Bug 811244

Summary: self heal - dirty afr flags after successfull stat: the empty directory one dirty server case
Product: [Community] GlusterFS Reporter: Rodrigo Severo <rodrigo>
Component: replicateAssignee: Pranith Kumar K <pkarampu>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.2.6CC: amarts, gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-24 13:04:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rodrigo Severo 2012-04-10 14:18:35 UTC
Description of problem:
An empty directory with dirty flags on one server stats successfully but remain with the dirty flags.

Version-Release number of selected component (if applicable):
3.2.6

How reproducible:
Always

Steps to Reproduce:
1. # getfattr -d -e hex -m . "/brick/inverso-1/thumb/"
getfattr: Removing leading '/' from absolute path names
# file: brick/inverso-1/thumb/
trusted.afr.inverso-client-1=0x000000000000000100000001
trusted.gfid=0x80d9a95bdb994da19949ece63b9c529c
2.# getfattr -d -e hex -m . "/brick/inverso-2/thumb/"
getfattr: Removing leading '/' from absolute path names
# file: brick/inverso-2/thumb/
trusted.gfid=0x80d9a95bdb994da19949ece63b9c529c
3.# stat /mnt/temp/thumb
    File: `/mnt/temp/thumb'
  Size: 4096            Blocks: 8          IO Block: 131072 directory
Device: 16h/22d Inode: 18446744072986443650  Links: 2
Access: (0775/drwxrwxr-x)  Uid: ( 1122/svn-automatico)   Gid: (   81/ UNKNOWN)
Access: 2012-02-13 11:51:26.063726935 -0200
Modify: 2012-02-13 11:51:26.063726935 -0200
Change: 2012-02-24 11:53:23.711935489 -0200
 Birth: -

Actual results:
Dirty afr flags remain dirty:
 getfattr -d -e hex -m . "/brick/inverso-1/thumb/"
getfattr: Removing leading '/' from absolute path names
# file: brick/inverso-1/thumb/
trusted.afr.inverso-client-1=0x000000000000000100000001
trusted.gfid=0x80d9a95bdb994da19949ece63b9c529c

Expected results:
Cleaned afr flags after stat

Additional info:
I wonder if this might be related to the stat-prefetch issue mentioned by Jeff Darcy at https://bugzilla.redhat.com/show_bug.cgi?id=764232#c14

Comment 1 Rodrigo Severo 2012-04-10 14:27:09 UTC
All this has been tested with Gluster 3.2.6
I mentioned 3.2.5 at "Version(s) for the lack of 3.2.6 on the dropbox.

Comment 2 Amar Tumballi 2012-07-11 05:05:55 UTC
Hi Rodrigo, Can you check with latest 3.3.0 release and see if the issue exists?

Comment 3 Pranith Kumar K 2012-07-24 13:04:01 UTC

*** This bug has been marked as a duplicate of bug 762680 ***