Re: [Gluster-devel] Sometimes read failed just after write before file closed when try 100 times in different new files

2017-12-28 Thread Venetjoki, Sami (Nokia - FI/Espoo)
Hi, yes, in test code there was such issue. The production code that occasionally has issues with first time accessing the file however has proper parameters in use when opening a file. In production the issue is now gone when the same file being read/written is no longer locked with another f

Re: [Gluster-devel] Sometimes read failed just after write before file closed when try 100 times in different new files

2017-12-28 Thread Lian, George (NSB - CN/Hangzhou)
Hi, Gluster Expert, Sorry for wrong code "open(argv[1], O_CREAT|O_RDWR|S_IRUSR|S_IWUSR) "in previous mail, after correct it , the issues seems GONE. But I still confuse why wrong code not failed in EXT4 file system. After I check tcpdump packet via network, it show that in CREATE process, the mo

[Gluster-devel] Sometimes read failed just after write before file closed when try 100 times in different new files

2017-12-28 Thread Lian, George (NSB - CN/Hangzhou)
Hi, Gluster expert, I has just raise a bug with https://bugzilla.redhat.com/show_bug.cgi?id=1529237 on gluster community. I also attached the reproduce source code and shell script here FYI. >From my investigation , I suppose the issue maybe caused by "cache in client >is invalid but the file