Bug 922292 - writes fail with invalid argument
Summary: writes fail with invalid argument
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: GlusterFS
Classification: Community
Component: distribute
Version: mainline
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Nagaprasad Sathyanarayana
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-16 02:13 UTC by Pranith Kumar K
Modified: 2016-02-18 00:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-16 09:44:23 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)
script to recreate the bug (294 bytes, application/x-shellscript)
2013-03-16 02:13 UTC, Pranith Kumar K
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.