-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configurable number of retries and interval between retries #1098
base: master
Are you sure you want to change the base?
Conversation
@eirslett can we get this bumped or merged. GitHub Actions is constantly failing with this error? |
Pleaaaase 😜 |
I see the problem! It's just that I'm a bit unsure what the right solution is. There are trade-offs. There are already so many configuration options on this plugin - and if you look at the PRs that have been opened, so many proposed configuration options - in the end it will just be even more unmaintainable than it already is. It's hard to write automated tests for everything without a major refactor of the codebase, and it's not uncommon that unrelated things break because of that. Maybe adding dynamic retries is an option, I'm not sure it has to be configurable though. Could just go with a simple default, for example 3 retries, 10 seconds between each. But retrying against a CDN (nodejs.org in this case) that is overloaded usually won't fix the problem anyways, it could make the problem even worse. There was a suggestion that we could stop streaming the downloaded file - instead just keep it in memory until it's fully downloaded. All or nothing. That will probably solve the issue with corrupt files. As for Flink - Maybe Flink could host a mirror of the node.js CDN, for its use? This plugin has specific configuration for using other download roots. It's made specifically to be able to use a more reliable CDN than nodejs.org. |
I am going to keep my eye on 1.14.2 to see if it alleviates our GitHub Actions failures thanks for looking into this @eirslett |
OK getting this error now...
|
How often is this occurring - 100 % of the time, or is it only when the Node.js CDN is unstable? |
Its seems really random. So it must just be when Node.js CDN is busy? |
@eirslett: are there any objections against merging this? We are also facing the premature EOF issue on github actions every day and think this could help us improving it. |
The PR adds retry option of download and install for node, npm, yarn.
We (Flink community) sometimes faced an issue like
so archive was corrupted and removed. However it would be nice to have an autoretry for this case
i guess it could also partially address #882