Commit 68f9cb9
committed
fix(project): Resolve EBUSY errors on Windows by checkpointing WAL on close
On Windows, SQLite WAL mode keeps file handles that prevent deletion even
after close(). Adding PRAGMA wal_checkpoint(TRUNCATE) before close flushes
WAL content back to the main database and releases all file handles cleanly.
This single fix in BuildCacheStorage.close() resolves all Windows EBUSY
errors across cache tests and integration tests without needing per-test
workarounds.
Additional fixes:
- Close CacheManager in BuildServer.destroy() to release DB handles
- Add #destroyed flag to prevent builds from starting after shutdown
- Close singleton instances in CacheManager create() test1 parent a3be817 commit 68f9cb9
2 files changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | 129 | | |
131 | | - | |
132 | 130 | | |
133 | 131 | | |
134 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
563 | 564 | | |
564 | 565 | | |
565 | 566 | | |
0 commit comments