Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1230007

Summary: [Backup]: 'New' as well as 'Modify' entry getting recorded for a newly created hardlink
Product: [Community] GlusterFS Reporter: Saravanakumar <sarumuga>
Component: glusterfindAssignee: Saravanakumar <sarumuga>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: avishwan, khiremat, sanandpa
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1226889
: 1230687 (view as bug list) Environment:
Last Closed: 2016-06-16 13:10:07 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:
Bug Depends On: 1226889    
Bug Blocks: 1223636, 1230687    

Comment 1 Anand Avati 2015-06-10 06:33:20 UTC
REVIEW: http://review.gluster.org/11137 (features/changelog: Avoid setattr fop logging during rename) posted (#2) for review on master by Saravanakumar Arumugam (sarumuga)

Comment 2 Anand Avati 2015-06-10 06:34:19 UTC
REVIEW: http://review.gluster.org/11137 (features/changelog: Avoid setattr fop logging during rename) posted (#3) for review on master by Saravanakumar Arumugam (sarumuga)

Comment 3 Anand Avati 2015-06-11 07:32:25 UTC
REVIEW: http://review.gluster.org/11137 (features/changelog: Avoid setattr fop logging during rename) posted (#5) for review on master by Saravanakumar Arumugam (sarumuga)

Comment 4 Anand Avati 2015-06-11 12:04:09 UTC
REVIEW: http://review.gluster.org/11137 (features/changelog: Avoid setattr fop logging during rename) posted (#6) for review on master by Saravanakumar Arumugam (sarumuga)

Comment 5 Anand Avati 2015-06-11 12:19:12 UTC
COMMIT: http://review.gluster.org/11137 committed in master by Raghavendra G (rgowdapp) 
------
commit a6c53571a9a7c74d0fa2683b4ba04682bd6a46ad
Author: Saravanakumar Arumugam <sarumuga>
Date:   Tue Jun 9 17:49:58 2015 +0530

    features/changelog: Avoid setattr fop logging during rename
    
    Problem:
            When a file is renamed and the (renamed)file's Hashing
    falls into a different brick, DHT creates a special file(linkto file)
    in the brick(Hashed subvolume) and carries out setattr operation
    on that file.
    
    Currently, Changelog records this(setattr) operation in Hashed
    subvolume. glusterfind in turn records this operation
    as MODIFY operation.
    
    So, there is a NEW entry in Cached subvolume and MODIFY entry
    in Hashed subvolume for the same file.
    
    Solution:
            Avoid logging setattr operation carried out, by
    marking the operation as internal fop using xdata.
    
    In changelog translator, check whether setattr is set
    as internal fop and skip accordingly.
    
    Change-Id: I21b09afb5a638b88a4ccb822442216680b7b74fd
    BUG: 1230007
    Signed-off-by: Saravanakumar Arumugam <sarumuga>
    Reviewed-on: http://review.gluster.org/11137
    Reviewed-by: Raghavendra G <rgowdapp>
    Tested-by: Raghavendra G <rgowdapp>

Comment 6 Nagaprasad Sathyanarayana 2015-10-25 15:22:46 UTC
Fix for this BZ is already present in a GlusterFS release. You can find clone of this BZ, fixed in a GlusterFS release and closed. Hence closing this mainline BZ as well.

Comment 7 Niels de Vos 2016-06-16 13:10:07 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user