Bug 765551 (GLUSTER-3819)
| Summary: | Input/output error on gfid mismatch | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Jason Stubbs <jasonbstubbs> |
| Component: | replicate | Assignee: | Pranith Kumar K <pkarampu> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | M S Vishwanath Bhat <vbhat> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.2.4 | CC: | gluster-bugs, mzywusko, psharma, rfortier, sean |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.4.0 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-07-24 17:39:55 UTC | Type: | --- |
| 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: | |||
| Bug Blocks: | 817967 | ||
|
Description
Jason Stubbs
2011-11-20 04:38:26 UTC
I can reproduce this on the pages 3.2.6p3 release using glusterfs, but mounting the volume with NFS does not trigger the error. This works whether you define the same NFS host or a different NFS host for each mount. sean CHANGE: http://review.gluster.com/3177 (features/locks: Find parent-entrylk presence in lookup) merged in master by Anand Avati (avati) CHANGE: http://review.gluster.com/3178 (cluster/afr: Build parent loc for expunge) merged in master by Anand Avati (avati) CHANGE: http://review.gluster.com/3179 (cluster/afr: Handle transient parent-entry xactions in lookup) merged in master by Anand Avati (avati) CHANGE: http://review.gluster.com/3185 (cluster/afr: Set errno correctly in find_fresh_parents failures) merged in master by Anand Avati (avati) I am not abel to reproduce thsi issue on the following build:- [root@dhcp201-104 ~]# rpm -qa|grep gluster glusterfs-devel-3.3.0qa43-1.el6.x86_64 glusterfs-3.3.0qa43-1.el6.x86_64 glusterfs-server-3.3.0qa43-1.el6.x86_64 glusterfs-geo-replication-3.3.0qa43-1.el6.x86_64 glusterfs-debuginfo-3.3.0qa43-1.el6.x86_64 glusterfs-fuse-3.3.0qa43-1.el6.x86_64 glusterfs-rdma-3.3.0qa43-1.el6.x86_64 My setup details are as follows dhcp201-104.englab.pnq.redhat.com (GlusterServer) dhcp201-175.englab.pnq.redhat.com (host for a brick and gluster client for volume on gluster server) dhcp201-207.englab.pnq.redhat.com(host for a brick and gluster client for volume on gluster server) cmds:- @dhcp201-104.englab.pnq.redhat.com gluster volume create test3 dhcp201-175.englab.pnq.redhat.com:/vol/test3 dhcp201-207.englab.pnq.redhat.com:/vol/test1 gluster volume start test3 @dhcp201-175.englab.pnq.redhat.com mount -t glusterfs dhcp201-104.englab.pnq.redhat.com:/test3 /mnt/test1 cd /mnt/test1 while true;do date >> testfile.tmp;sleep 2; mv -f testfile.tmp testfile;done @dhcp201-175.englab.pnq.redhat.com mount -t glusterfs dhcp201-104.englab.pnq.redhat.com:/test3 /mnt/test1 cd /mnt/test1 while true;do sleep 5;tail -n 1 testfile; done Please correct me if i am missing something.Else can i mark this as verified. Hi, I stopped testing glusterfs because of this and a few other issues. However, I was only getting the error once every day or two with the sleeps. For the test case, I removed the "sleep" commands and was able to reproduce in a matter of minutes - actually, I think it was seconds. If it still works without the sleeps then I guess it's fixed. Regards, Jason Stubbs Jason, I tried it without sleep cmd.I am not able to see log report that you have decribed about.As basic i/o theory while the same file is used for reading and writing then the writing process will take the exlusive lock over the file and reading proceess will get and error.In this case it can not be avoided so i am abel to see the reading proceess output like this :- Thu May 31 05:03:54 EDT 2012 Thu May 31 05:03:54 EDT 2012 tail: cannot open `testfile' for reading: Structure needs cleaning tail: cannot open `testfile' for reading: Structure needs cleaning tail: cannot open `testfile' for reading: Structure needs cleaning tail: cannot open `testfile' for reading: Structure needs cleaning tail: cannot open `testfile' for reading: Structure needs cleaning This is expected behaiour.I am marking this bug as verified,If you still have doubts about my steps to reroduce,Please correct me. |