[Bugs] [Bug 1510401] New: fstat returns ENOENT/ESTALE
bugzilla at redhat.com
bugzilla at redhat.com
Tue Nov 7 10:30:38 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1510401
Bug ID: 1510401
Summary: fstat returns ENOENT/ESTALE
Product: GlusterFS
Version: mainline
Component: fuse
Assignee: bugs at gluster.org
Reporter: rgowdapp at redhat.com
CC: bugs at gluster.org
Description of problem:
In a multithreaded application if following test is repeated one might end up a
failed fstat with ENOENT/ESTALE error:
* Turn off performance.open-behind.
* Thread t1 opens an fd on file
* file is unlinked or overwritten by a rename - say rename (newfile, file)
* Thread t2 does fstat (fd)
Version-Release number of selected component (if applicable):
Day 0 bug, present in all versions.
How reproducible:
Race but reproducible fairly consistently
Steps to Reproduce:
1. Turn off performance.open-behind
2. Thread t1 opens an fd on file
3. file is unlinked or overwritten by a rename - say rename (newfile, file)
4. Thread t2 does fstat (fd)
Actual results:
sometimes fstat fails with ENOENT/ESTALE
Expected results:
fstat should never fail as there is an fd opened on the file.
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list