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:
Tried recreating the bug several times (~7) and everything worked fine. Hence, closing the bug with the resolution that it WORKSFORME.