1. `EMFILE`: current process is out of file descriptors 2. `ENFILE`: system is out of file descriptors The `fs.rmdir()` logic in `lib/internal/fs/rimraf.js` currently handles the former but not the latter: https://github.com/nodejs/node/blob/ed401236f6988c6ad62a21dbbf808da83782bee0/lib/internal/fs/rimraf.js#L43-L44 Both are (hopefully) transient errors though and should be handled identically. Since `ENFILE` is difficult to test for, I think it's okay to omit a regression test.
Activity
thangktran commentedon Nov 14, 2019
I would like to work on this issue
bnoordhuis commentedon Nov 14, 2019
@thangktran Go for it :)
fs: add ENFILE to rimraf retry logic
fs: add ENFILE to rimraf retry logic
fs: add ENFILE to rimraf retry logic
fs: add ENFILE to rimraf retry logic