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

Bug 1114557

Summary: DHT : - In case of race between two mkdir(creating same Directory) from different mount, both are failing with error even though Directory is created. FUSE mount gave "Input/output error"
Product: [Community] GlusterFS Reporter: Susant Kumar Palai <spalai>
Component: distributeAssignee: Susant Kumar Palai <spalai>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: pre-releaseCC: bugs, gluster-bugs, mzywusko, nsathyan, rgowdapp, spalai
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1114010 Environment:
Last Closed: 2015-05-14 17:26:10 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: 1114010    
Bug Blocks: 1122886    

Comment 1 Anand Avati 2014-06-30 11:06:16 UTC
REVIEW: http://review.gluster.org/8203 (DHT/mkdir : Fill the stbuf from the subvols on which directory creation was successful.) posted (#1) for review on master by susant palai (spalai)

Comment 2 Susant Kumar Palai 2014-06-30 11:12:50 UTC
Root Cause:  The lookup for the 2nd mkdir heals the dir (which was just succeeded in hashed) . Hence 2nd mkdir will say EEXIST.  For 1st mkdir which has just succeeded on hashed one will fail on rest of the non-hashed bricks. And the empty stat will be returned on the call back. Fuse wants inode link for which a stat information is needed. As it does not see the gfid(as stat is empty) it does not trust on the completion of the entry fop. Hence, it enforce an EIO (Doubtfully)

Comment 3 Anand Avati 2014-06-30 13:22:42 UTC
REVIEW: http://review.gluster.org/8203 (DHT/mkdir : Fill the stbuf from the subvols on which directory creation was successful.) posted (#2) for review on master by susant palai (spalai)

Comment 4 Anand Avati 2014-07-18 11:38:24 UTC
COMMIT: http://review.gluster.org/8203 committed in master by Vijay Bellur (vbellur) 
------
commit d7c725f4ac8d0c20855f5ca1e4c2dcdddf422057
Author: Susant Palai <spalai>
Date:   Mon Jun 30 07:01:10 2014 -0400

    DHT/mkdir : Fill the stbuf from the subvols on which directory creation
    was successful.
    
    Problem: In case a mkdir sees EEXIST on a non-hashed subvol it reports
    error to the application.
    
    Change-Id: I44b2f32fc1069e609d788b6d25b9366b1460395c
    BUG: 1114557
    Signed-off-by: Susant Palai <spalai>
    Reviewed-on: http://review.gluster.org/8203
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Shyamsundar Ranganathan <srangana>
    Reviewed-by: Raghavendra G <rgowdapp>
    Reviewed-by: Anders Blomdell <anders.blomdell.se>
    Reviewed-by: Vijay Bellur <vbellur>

Comment 5 Niels de Vos 2015-05-14 17:26:10 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.7.0, please open a new bug report.

glusterfs-3.7.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://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user

Comment 6 Niels de Vos 2015-05-14 17:35:28 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.7.0, please open a new bug report.

glusterfs-3.7.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://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user

Comment 7 Niels de Vos 2015-05-14 17:37:49 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.7.0, please open a new bug report.

glusterfs-3.7.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://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user

Comment 8 Niels de Vos 2015-05-14 17:42:30 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.7.0, please open a new bug report.

glusterfs-3.7.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://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user