fs: handle recursive watch setup races - #65699
Conversation
668c4de to
bdb25e9
Compare
Arm directory watchers before reading entries to close the setup window. Discard stale watcher state when paths disappear so recreated paths can be watched again. On AIX, treat ENODEV as missing only when stat confirms the path is gone. Preserve root throwIfNoEntry behavior and other watch errors. Fixes: nodejs#65697 Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex
bdb25e9 to
67b5c41
Compare
Codecov Reportβ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #65699 +/- ##
==========================================
- Coverage 90.07% 90.06% -0.02%
==========================================
Files 754 754
Lines 256395 256444 +49
Branches 48494 48516 +22
==========================================
+ Hits 230947 230963 +16
- Misses 16563 16582 +19
- Partials 8885 8899 +14
π New features to boost your workflow:
|
Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex
|
@panva This is presumably blocked because it still has |
|
It is not blocked. It'll land with the first CQ after it ages. node/doc/contributing/collaborator-guide.md Lines 282 to 287 in 2befec5
It did. With known flakes. It's not red and it's not aborted. So it's good. Orange is acceptable. |
Arm directory watchers before reading entries to close the setup window. Discard stale watcher state when paths disappear so recreated paths can be watched again.
On AIX, treat ENODEV as missing only when stat confirms the path is gone. Preserve root throwIfNoEntry behavior and other watch errors.
Fixes: #65697