fs: refactor rimraf retry options#30644
Merged
cjihrig merged 5 commits intonodejs:masterfrom Nov 27, 2019
Merged
Conversation
yorkie
reviewed
Nov 25, 2019
doc/api/fs.md
Outdated
Contributor
There was a problem hiding this comment.
How about supporting exponential backoff or allow to custom, which may react to the real world.
Contributor
Author
There was a problem hiding this comment.
I don't plan on adding that myself, and definitely not in this PR. But someone could open a follow up PR that passes in a user defined function for that.
Collaborator
Collaborator
Collaborator
Collaborator
Contributor
Author
|
ping for reviews |
addaleax
approved these changes
Nov 27, 2019
Collaborator
jasnell
approved these changes
Nov 27, 2019
Collaborator
Collaborator
Contributor
Author
|
The failures were test-http2-client-upload, which is a known flake, and test-inspector-wait-for-connection, which is #30619. I'm going to land this. |
4 tasks
This is part of reworking the rimraf retry logic. Refs: nodejs#30580 PR-URL: nodejs#30644 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit makes retries an opt-in feature by defaulting to no automatic retries. This will be particularly important once synchronous operations can sleep between attempts. Refs: nodejs#30580 PR-URL: nodejs#30644 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit removes the emfileWait option. EMFILE errors are now handled the same as any other retriable error. Refs: nodejs#30580 PR-URL: nodejs#30644 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit adds a retryDelay option to rimraf which configures the amount of time between retry operations. Refs: nodejs#30580 PR-URL: nodejs#30644 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Co-authored-by: Thang Tran <trankimthang279@gmail.com> Fixes: nodejs#30482 Refs: nodejs#30499 Refs: nodejs#30580 PR-URL: nodejs#30644 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Contributor
Author
|
Landed in 84aa192...74f8196. Thanks for the reviews. |
addaleax
pushed a commit
that referenced
this pull request
Nov 30, 2019
Merged
BridgeAR
added a commit
that referenced
this pull request
Dec 3, 2019
Notable changes:
* fs:
* Reworked experimental recursive `rmdir()` (cjihrig)
#30644
* The `maxBusyTries` option is renamed to `maxRetries`, and its
default is set to 0. The `emfileWait` option has been removed,
and `EMFILE` errors use the same retry logic as other errors.
The `retryDelay` option is now supported. `ENFILE` errors are
now retried.
* http:
* Make maximum header size configurable per-stream or per-server
(Anna Henningsen) #30570
* http2:
* Make maximum tolerated rejected streams configurable (Denys
Otrishko) #30534
* Allow to configure maximum tolerated invalid frames (Denys
Otrishko) #30534
* wasi:
* Introduce initial WASI support (cjihrig)
#30258
PR-URL: #30774
BridgeAR
added a commit
that referenced
this pull request
Dec 3, 2019
Notable changes:
* fs:
* Reworked experimental recursive `rmdir()` (cjihrig)
#30644
* The `maxBusyTries` option is renamed to `maxRetries`, and its
default is set to 0. The `emfileWait` option has been removed,
and `EMFILE` errors use the same retry logic as other errors.
The `retryDelay` option is now supported. `ENFILE` errors are
now retried.
* http:
* Make maximum header size configurable per-stream or per-server
(Anna Henningsen) #30570
* http2:
* Make maximum tolerated rejected streams configurable (Denys
Otrishko) #30534
* Allow to configure maximum tolerated invalid frames (Denys
Otrishko) #30534
* wasi:
* Introduce initial WASI support (cjihrig)
#30258
PR-URL: #30774
targos
pushed a commit
that referenced
this pull request
Jan 13, 2020
BethGriggs
pushed a commit
that referenced
this pull request
Feb 6, 2020
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the changes proposed in #30580.
This PR doesn't quite close out #30580 though because synchronous retries are not able to be fully implemented just yet (libuv/libuv#2548 should enable that soon though).
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes