[PR #3406] [MERGED] :electron: Adding retries in to the file system writes #54141

Closed
opened 2026-04-30 23:32:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/3406
Author: @MikesGlitch
Created: 9/9/2024
Status: Merged
Merged: 9/9/2024
Merged by: @MikesGlitch

Base: masterHead: electron/hardening-file-system-access


📝 Commits (6)

📊 Changes

2 files changed (+45 additions, -7 deletions)

View changed files

📝 packages/loot-core/src/platform/server/fs/index.electron.ts (+39 -7)
upcoming-release-notes/3406.md (+6 -0)

📄 Description

Should fix: #3390

Adds retries into file system write calls. This should mitigate errors caused by virus scanners locking the files shortly after they've been written to.

File system reads aren't affected by the lock, so I haven't touched them.

showing err


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/3406 **Author:** [@MikesGlitch](https://github.com/MikesGlitch) **Created:** 9/9/2024 **Status:** ✅ Merged **Merged:** 9/9/2024 **Merged by:** [@MikesGlitch](https://github.com/MikesGlitch) **Base:** `master` ← **Head:** `electron/hardening-file-system-access` --- ### 📝 Commits (6) - [`c8da9c8`](https://github.com/actualbudget/actual/commit/c8da9c8606496f78cfa05c355c1ab41d7ec295ce) hardening the file system access by added retrys - [`7102729`](https://github.com/actualbudget/actual/commit/7102729c58cfa90b21a18d40e1f452da19398cba) release notees - [`74c2759`](https://github.com/actualbudget/actual/commit/74c275989fd0f3dff2f3b2fea77f1541b04bf872) remove unneeded console log - [`9dc7e94`](https://github.com/actualbudget/actual/commit/9dc7e94061138c75e5af6c7953001086f462009b) promise-retry instead of my own - [`6f21168`](https://github.com/actualbudget/actual/commit/6f21168dc6ee58d40d1d66fbf44e4f6137cdd610) tiny bit more info - [`76ac195`](https://github.com/actualbudget/actual/commit/76ac195f1e8ac0e3407f3e974361a286896c5977) capital U ### 📊 Changes **2 files changed** (+45 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/platform/server/fs/index.electron.ts` (+39 -7) ➕ `upcoming-release-notes/3406.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes --> Should fix: #3390 Adds retries into file system write calls. This should mitigate errors caused by virus scanners locking the files shortly after they've been written to. File system reads aren't affected by the lock, so I haven't touched them. ![showing err](https://github.com/user-attachments/assets/6afd629b-341a-4ae7-9c94-d44d503a52cf) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-30 23:32:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#54141