Skip to content

Conversation

@ethe
Copy link
Member

@ethe ethe commented Dec 4, 2025

Summary

  • Treat NotFound from DirEntry::metadata as a benign race so listings continue when files disappear between read_dir and metadata.
  • Apply the behavior uniformly across tokio, tokio-uring, and monoio disk backends for consistent runtime semantics.
  • Add a regression test (tokio backend) to ensure disappearing entries are skipped and do not turn into hard errors.

Details

  • Introduced helper in tokio backend to filter vanished entries while preserving other I/O errors.
  • Monoio and tokio-uring now mirror the same NotFound skip.
  • Regression test exercises the race by deleting a file after read_dir and asserting only existing entries are returned.

@ethe ethe force-pushed the fix/skip-vaished branch from 48b655d to cc0a9b0 Compare December 4, 2025 15:28
@ethe ethe merged commit 51dc1cd into main Dec 4, 2025
5 checks passed
@ethe ethe deleted the fix/skip-vaished branch December 4, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants