Skip to content

[r3.6] db/snaptype: tolerate files deleted during dir scan - #22855

Merged
awskii merged 1 commit into
release/3.6from
alex/parsedir_skip_vanished_36
Jul 29, 2026
Merged

[r3.6] db/snaptype: tolerate files deleted during dir scan#22855
awskii merged 1 commit into
release/3.6from
alex/parsedir_skip_vanished_36

Conversation

@AskAlexSharov

Copy link
Copy Markdown
Collaborator

Cherry-pick of #22853 to release/3.6.

Fixes the QA sync-from-scratch (gnosis archive) abort: https://github.com/erigontech/erigon/actions/runs/30347797880/job/90237994145

Merged-over segments are unlinked concurrently with directory scans,
so DirEntry.Info can hit a vanished file between ReadDir and lstat.
ParseDir now skips such entries instead of failing the whole
OpenFolder, and wraps remaining stat errors with the dir for context.

Seen as QA sync-from-scratch abort on gnosis:
[snapshots] retire blocks err="open: OpenFolder: lstat .../v1.1-047370-047371-transactions.seg: no such file or directory"

Claude-Session: https://claude.ai/code/session_01UYCsHj9HYTJnqUCy8a7W91
@awskii
awskii enabled auto-merge July 29, 2026 09:22
@awskii
awskii added this pull request to the merge queue Jul 29, 2026
Merged via the queue into release/3.6 with commit 9f2fa45 Jul 29, 2026
94 checks passed
@awskii
awskii deleted the alex/parsedir_skip_vanished_36 branch July 29, 2026 10:51
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