[Gluster-devel] fstat problems when killing with stat prefetch turned on

Miklós Fokin miklos.fokin at appeartv.com
Tue Apr 25 10:12:52 UTC 2017


Hello,

I tried reproducing the problem that Mateusz Slupny was experiencing 
before (stat returning bad st_size value on self-healing) on my own 
computer with only 3 bricks (one being an arbiter) on 3.10.0.
The result with such a small setup was that the bug appeared both on 
killing and during the self-healing process, but only rarely (once in 
hundreds of tries) and only with performance.stat-prefetch turned on.
This might be a completely different issue as on the setup Matt was 
using, he could reproduce it with the mentioned option being off, it 
always happened but only during recovery, not after killing.
I did submit a bug report about this: 
https://bugzilla.redhat.com/show_bug.cgi?id=1444892.

The problem is as Matt wrote is that this causes data corruption if one 
is to use the returned size on writing.
Could I get some pointers as to what parts of the gluster code I should 
be looking at to figure out what the problem might be?

Thanks in advance,
Miklós



More information about the Gluster-devel mailing list