Skip to content

fix(ragfs): skip vanished localfs entries during listing - #5590

Open
yu1128-L wants to merge 1 commit into
volcengine:mainfrom
yu1128-L:fix/localfs-skip-vanished-entry
Open

yu1128-L wants to merge 1 commit into
volcengine:mainfrom
yu1128-L:fix/localfs-skip-vanished-entry

Conversation

@yu1128-L

@yu1128-L yu1128-L commented Oct 3, 2026

Copy link
Copy Markdown

Fixes #5580.

What changed

localfs currently aborts the entire directory listing if an entry returned by readdir disappears before its metadata is read. This is a normal race for runtime lock files and makes otherwise healthy listings fail with NotFound.

This change treats only ErrorKind::NotFound from DirEntry::metadata() as a vanished entry and skips it. Other metadata errors are still propagated.

Tests

  • cargo test -p ragfs test_listing_skips_entry_removed_after_readdir -- --nocapture
  • The targeted regression test passes.
  • Existing localfs coverage was also exercised; the unrelated permission-based glob test cannot produce chmod 0 failures when run as Docker root.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

[Bug]: localfs listing aborts when runtime lock entries disappear during metadata lookup

1 participant