Skip to content

fix: retry reading Editor.bin on Windows EBUSY/EPERM lock race#26

Merged
cs50victor merged 1 commit into
mainfrom
fix/sentry-editor-bin-ebusy
Jun 5, 2026
Merged

fix: retry reading Editor.bin on Windows EBUSY/EPERM lock race#26
cs50victor merged 1 commit into
mainfrom
fix/sentry-editor-bin-ebusy

Conversation

@cs50victor

@cs50victor cs50victor commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

- x2t writes Editor.bin then exits; AV/Search Indexer can briefly lock the freshly
  written file, so the immediate readFileSync in /api/convert throws EBUSY/EPERM
- add readFileWithRetry (bounded, EBUSY/EPERM-only, rethrows other codes) and use it
  at both convert reads (cache-hit and post-conversion)
- unit tests for retry-then-succeed, exhaust-then-rethrow, and no-retry-on-other-errors
@cs50victor cs50victor merged commit c09a629 into main Jun 5, 2026
4 checks passed
@cs50victor cs50victor deleted the fix/sentry-editor-bin-ebusy branch June 5, 2026 01:33
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.

1 participant