EPERM error on Windows when multiple processes try to write the same file
Nessuno ha ancora preso questa issue.
- #29 di @mekwall — chiusa senza merge
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- operating-systems, tooling
Direzione di ricerca
Start with the write-file-atomic behavior described in the issue and run the linked write-atomic-issue reproduction on Windows. Compare the existing handling referenced in #22 with concurrent sync and async writes from multiple processes; done means the reproduction no longer raises EPERM during concurrent writes or renames.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When write-file-atomic is used by multiple processes (e.g. in worker-farm) it can run into a race condition where the same file is being written/renamed concurrently. On Windows it causes the following error:
Error: EPERM: operation not permitted, rename '...' -> '...'
#22 seems to address this issue for async writes within the same process, but the issue still exists for parallel sync/async writes.
Here's a repro that demonstrates the problem: https://github.com/asapach/write-atomic-issue
Original issue: facebook/jest#4444
- Lingua principale
- JavaScript
- Stelle
- 256
- Fork
- 51
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di npm/write-file-atomic
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
npm/write-file-atomic#245 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 50/100
npm/write-file-atomic#243 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
npm/write-file-atomic#224 ·
-
PornographyAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
npm/write-file-atomic#189 · 6 reazioni ·
-
Bug Needs Triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
npm/write-file-atomic#163 ·
Tutte le issue di npm/write-file-atomic
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
obsidianmd/obsidian-help#1169 ·
I maintainer di solito rispondono entro 2 giorni
-
[docs] RELEASE.md: wrong branch name, no check that the prepare PR merged with the right subject, manual publish stepForse già presa @albertteoh l’ha presa oggi. Apertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
jaegertracing/jaeger-ui#4739 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
keepassxreboot/keepassxc-browser#3159 · 1 commento ·
-
Add: ESP 2 RSApertaapproved check:passed feeds:add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 67/100