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

Bug 922292

Summary: writes fail with invalid argument
Product: [Community] GlusterFS Reporter: Pranith Kumar K <pkarampu>
Component: distributeAssignee: Nagaprasad Sathyanarayana <nsathyan>
Status: CLOSED WORKSFORME QA Contact:
Severity: unspecified Docs Contact:
Priority: medium    
Version: mainlineCC: gluster-bugs, kdhananj, smohan, yinyin2010
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-16 09:44:23 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:
Attachments:
Description Flags
script to recreate the bug none

Description Pranith Kumar K 2013-03-16 02:13:26 UTC
Created attachment 710933 [details]
script to recreate the bug

Description of problem:
I was checking if the bug https://bugzilla.redhat.com/show_bug.cgi?id=906238 exists on master, while the bug is not occurring on master I saw that some of the writes are failing with EINVAL. Logs contain following errors in dht.
I am not sure if it is a dht issue, for now assigning to dht.

/usr/local/var/log/glusterfs/mnt-client2.log:[2013-03-16 02:01:36.656369] E [dht-helper.c:973:dht_inode_ctx_get] (-->/usr/local/lib/glusterfs/3git/xlator/cluster/distribute.so(dht_lookup_linkfile_create_cbk+0x200) [0x7fbb6c7cd417] (-->/usr/local/lib/glusterfs/3git/xlator/cluster/distribute.so(dht_layout_preset+0xdf) [0x7fbb6c7b50d2] (-->/usr/local/lib/glusterfs/3git/xlator/cluster/distribute.so(dht_inode_ctx_layout_set+0x3a) [0x7fbb6c7b749f]))) 0-r2-dht: invalid argument: inode
/usr/local/var/log/glusterfs/mnt-client2.log:[2013-03-16 02:01:36.656402] E [dht-helper.c:992:dht_inode_ctx_set] (-->/usr/local/lib/glusterfs/3git/xlator/cluster/distribute.so(dht_lookup_linkfile_create_cbk+0x200) [0x7fbb6c7cd417] (-->/usr/local/lib/glusterfs/3git/xlator/cluster/distribute.so(dht_layout_preset+0xdf) [0x7fbb6c7b50d2] (-->/usr/local/lib/glusterfs/3git/xlator/cluster/distribute.so(dht_inode_ctx_layout_set+0xa1) [0x7fbb6c7b7506]))) 0-r2-dht: invalid argument: inode
/usr/local/var/log/glusterfs/mnt-client2.log:[2013-03-16 02:01:36.656871] W [fuse-bridge.c:2127:fuse_writev_cbk] 0-glusterfs-fuse: 6314: WRITE => -1 (Invalid argument)
/usr/local/var/log/glusterfs/mnt-client2.log:[2013-03-16 02:01:36.657128] W [fuse-bridge.c:1132:fuse_err_cbk] 0-glusterfs-fuse: 6315: FLUSH() ERR => -1 (Invalid argument)
/usr/local/var/log/glusterfs/mnt-client4.log:[2013-03-16 02:01:04.717872] E [dht-helper.c:973:dht_inode_ctx_get] (-->/usr/local/lib/glusterfs/3git/xlator/cluster/distribute.so(dht_lookup_linkfile_create_cbk+0x200) [0x7f6025fe3417] (-->/usr/local/lib/glusterfs/3git/xlator/cluster/distribute.so(dht_layout_preset+0xdf) [0x7f6025fcb0d2] (-->/usr/local/lib/glusterfs/3git/xlator/cluster/distribute.so(dht_inode_ctx_layout_set+0x3a) [0x7f6025fcd49f]))) 0-r2-dht: invalid argument: inode



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Create a plain-replicate volume. I am going to call the volume as r2
2.mkdir /mnt/client{1..10}; for i in {1..10}; do mount -t glusterfs `hostname`:/r2 /mnt/client$i; done
3.for i in {1..10}; do  ./906238.sh /mnt/client$i & done
I attached the script
The issue is consistently re-creatable.
Actual results:


Expected results:


Additional info:

Comment 2 Krutika Dhananjay 2014-01-16 09:44:23 UTC
Tried recreating the bug several times (~7) and everything worked fine. Hence, closing the bug with the resolution that it WORKSFORME.