Skip to content

Retry failed archive downloads #86

@sormuras

Description

@sormuras

Although #16 being addressed, we still see failing workflow runs that re-run via the GitHub Action UI do pass. As the real underlying error is hard to address (timeouts, connection resets, client capacities), a few built-in retries downloading a JDK archive should help in most cases.

java.io.IOException: fixed content-length: 211246818, bytes received: 52428800
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:964)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133)
	at Download$Browser.download(Download.java:287)
	at Download$Downloader.downloadArchive(Download.java:175)
	at Download.main(Download.java:100)
	at Download.main(Download.java:42)

Sources:

Idea: wrap Downloader.downloadArchive or Browser.download in a retry-loop.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions