Bug 1279376

Summary: Data Tiering:Rename of cold file to a hot file causing split brain and showing two copies of files in mount point
Product: [Community] GlusterFS Reporter: Nithya Balachandran <nbalacha>
Component: tieringAssignee: Nithya Balachandran <nbalacha>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: mainlineCC: asrivast, bugs, dlambrig, nbalacha, nchilaka, rhs-bugs, sankarshan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1277088
: 1283480 (view as bug list) Environment:
Last Closed: 2016-06-16 13:43:35 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: 1277088    
Bug Blocks: 1283480    

Comment 1 Nithya Balachandran 2015-11-09 10:43:56 UTC
Patch posted at:
http://review.gluster.org/#/c/12551/

Comment 2 Vijay Bellur 2015-11-16 06:34:59 UTC
REVIEW: http://review.gluster.org/12551 (cluster/tier: Do not delete linkto file on demotion) posted (#2) for review on master by N Balachandran (nbalacha)

Comment 3 Vijay Bellur 2015-11-17 15:06:37 UTC
REVIEW: http://review.gluster.org/12551 (cluster/tier: Do not delete linkto file on demotion) posted (#3) for review on master by N Balachandran (nbalacha)

Comment 4 Vijay Bellur 2015-11-17 17:58:14 UTC
REVIEW: http://review.gluster.org/12551 (cluster/tier: Do not delete linkto file on demotion) posted (#4) for review on master by Dan Lambright (dlambrig)

Comment 5 Vijay Bellur 2015-11-18 05:11:06 UTC
REVIEW: http://review.gluster.org/12551 (cluster/tier: Do not delete linkto file on demotion) posted (#5) for review on master by N Balachandran (nbalacha)

Comment 6 Vijay Bellur 2015-11-18 14:55:58 UTC
REVIEW: http://review.gluster.org/12551 (cluster/tier: Do not delete linkto file on demotion) posted (#6) for review on master by N Balachandran (nbalacha)

Comment 7 Vijay Bellur 2015-11-18 15:16:16 UTC
COMMIT: http://review.gluster.org/12551 committed in master by Dan Lambright (dlambrig) 
------
commit a1e4be4d277c8150657f7b9fd4b72dcdd639523d
Author: N Balachandran <nbalacha>
Date:   Mon Nov 9 15:49:50 2015 +0530

    cluster/tier: Do not delete linkto file on demotion
    
    The current DHT migration code will always delete the
    src linkto file after migration as dht always moves
     files to the hashed subvol. This is not the case in tiering.
    The lack of linkto files causes rename to fail leaving 2 files
     with the same name but different gfids on the volume.
    Modified to leave the linkto file behind if the source
     volume is the hashed subvolume.
    
    Change-Id: I2b99f7d34b4b719aee6232dc40c6a8f8ba88225d
    BUG: 1279376
    Signed-off-by: N Balachandran <nbalacha>
    Reviewed-on: http://review.gluster.org/12551
    Reviewed-by: Dan Lambright <dlambrig>
    Tested-by: Dan Lambright <dlambrig>

Comment 8 Niels de Vos 2016-06-16 13:43:35 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