You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vfs: memory provider serves stale content and size to already-open handles #66355
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
The already-open descriptor should observe the file's current content and size. On a real filesystem an open descriptor is a live view of the inode, not a snapshot.
The pre-existing handle keeps serving the bytes that were in the file when it was opened: readSync/read/readFileSync are stale, fstat reports the pre-mutation size, and the async readFile disagrees with the sync readFileSync on the very same handle.
Activity