Bug 1139992

Summary: DHT :- rm -rf is not removing stale link file and because of that unable to create file having same name as stale link file
Product: [Community] GlusterFS Reporter: Raghavendra G <rgowdapp>
Component: distributeAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.4.5CC: gluster-bugs, kkeithle, nsathyan, racpatel, spalai, ssamanta
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1117923 Environment:
Last Closed: 2015-04-13 07:07:42 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: 1117283, 1117923    
Bug Blocks: 1125245, 1138389, 1139170    

Comment 1 Anand Avati 2014-09-10 08:38:02 UTC
REVIEW: http://review.gluster.org/8673 (DHT/Create : Failing to identify a linkto file in lookup_everywhere_cbk path) posted (#1) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 2 Anand Avati 2014-09-24 15:14:27 UTC
REVIEW: http://review.gluster.org/8673 (DHT/Create : Failing to identify a linkto file in lookup_everywhere_cbk path) posted (#2) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 3 Anand Avati 2014-09-25 12:01:06 UTC
REVIEW: http://review.gluster.org/8673 (DHT/Create : Failing to identify a linkto file in lookup_everywhere_cbk path) posted (#3) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 4 Anand Avati 2014-09-25 13:53:56 UTC
REVIEW: http://review.gluster.org/8673 (DHT/Create : Failing to identify a linkto file in lookup_everywhere_cbk path) posted (#4) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 5 Anand Avati 2014-10-09 05:40:36 UTC
REVIEW: http://review.gluster.org/8673 (DHT/Create : Failing to identify a linkto file in lookup_everywhere_cbk path) posted (#5) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 6 Anand Avati 2014-10-09 07:34:57 UTC
REVIEW: http://review.gluster.org/8673 (DHT/Create : Failing to identify a linkto file in lookup_everywhere_cbk path) posted (#6) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 7 Anand Avati 2014-10-20 14:53:37 UTC
COMMIT: http://review.gluster.org/8673 committed in release-3.4 by Kaleb KEITHLEY (kkeithle) 
------
commit 3042613687d976c4e8938fb411cedc6e6ef559bf
Author: Susant Palai <spalai>
Date:   Wed Jul 9 09:31:45 2014 -0400

    DHT/Create : Failing to identify a linkto file in lookup_everywhere_cbk path
    
    In case a file is not found in its cached subvol we proceed with
    dht_lookup_everywhere. But as we dont add the linkto xattr to the
    dictionary, we fail to identify any linkto file encountered.The
    implication being we end up thinking the linkto file as a regular file
    and proceed with the fop.
    
    Change-Id: Iab02dc60e84bb1aeab49182f680c0631c33947e2
    BUG: 1139992
    Signed-off-by: Susant Palai <spalai>
    Reviewed-on: http://review.gluster.org/8277
    Reviewed-by: Vijay Bellur <vbellur>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-on: http://review.gluster.org/8673
    Reviewed-by: N Balachandran <nbalacha>
    Reviewed-by: Kaleb KEITHLEY <kkeithle>