Bug 1139984

Summary: DHT + rebalance : rebalance process crashed + data loss + few Directories are present on sub-volumes but not visible on mount point + lookup is not healing directories
Product: [Community] GlusterFS Reporter: Raghavendra G <rgowdapp>
Component: distributeAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 3.4.6CC: gluster-bugs, kkeithle, nsathyan, poelstra, racpatel, sdharane, vagarwal, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1104653 Environment:
Last Closed: 2015-04-13 07:06:14 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: 1034108, 1104653    
Bug Blocks: 1098971, 1125245, 1138922    

Comment 1 Anand Avati 2014-09-10 08:37:00 UTC
REVIEW: http://review.gluster.org/8670 (dht/rebalance: Do not allow rebalance when gfid mismatch found) posted (#1) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 2 Anand Avati 2014-09-24 15:13:31 UTC
REVIEW: http://review.gluster.org/8670 (dht/rebalance: Do not allow rebalance when gfid mismatch found) posted (#2) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 3 Anand Avati 2014-09-25 12:00:26 UTC
REVIEW: http://review.gluster.org/8670 (dht/rebalance: Do not allow rebalance when gfid mismatch found) posted (#3) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 4 Anand Avati 2014-09-25 13:53:24 UTC
REVIEW: http://review.gluster.org/8670 (dht/rebalance: Do not allow rebalance when gfid mismatch found) posted (#4) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 5 Anand Avati 2014-10-09 05:39:52 UTC
REVIEW: http://review.gluster.org/8670 (dht/rebalance: Do not allow rebalance when gfid mismatch found) posted (#5) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 6 Anand Avati 2014-10-09 07:34:08 UTC
REVIEW: http://review.gluster.org/8670 (dht/rebalance: Do not allow rebalance when gfid mismatch found) posted (#6) for review on release-3.4 by Raghavendra G (rgowdapp)

Comment 7 Anand Avati 2014-10-20 14:27:45 UTC
COMMIT: http://review.gluster.org/8670 committed in release-3.4 by Kaleb KEITHLEY (kkeithle) 
------
commit 67ccd153a889d81d4cd89534dbce792c111ad1c6
Author: Venkatesh Somyajulu <vsomyaju>
Date:   Thu Jun 12 14:18:05 2014 +0530

    dht/rebalance: Do not allow rebalance when gfid mismatch found
    
    Due to race condition, it may so happen that, gfid obtained
    in readdirp and gfid found by lookup are different for a given
    name. in that case do no allow the rebalance.
    
    Readdirp of an entry will bring the gfid, which will be stored
    in the inode through inode_link, and when lookup is done and
    gfid brought by lookup is different from the one stored in the
    inode, client3_3_lookup_cbk will return ESATLE and error will be
    captured by rebalance process.
    
    Change-Id: Iad839177ef9b80c1dd0e87f3406bcf4cb018e6fa
    BUG: 1139984
    Signed-off-by: Venkatesh Somyajulu <vsomyaju>
    Reviewed-on: http://review.gluster.org/7973
    Reviewed-by: Shyamsundar Ranganathan <srangana>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Krutika Dhananjay <kdhananj>
    Reviewed-by: Vijay Bellur <vbellur>
    Reviewed-on: http://review.gluster.org/8670
    Reviewed-by: Kaleb KEITHLEY <kkeithle>