Skip to content
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

Proposal: Add retries to network operations #140

Open
gdavison opened this issue Jun 6, 2023 · 1 comment
Open

Proposal: Add retries to network operations #140

gdavison opened this issue Jun 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gdavison
Copy link

gdavison commented Jun 6, 2023

In some cases, the Checkpoint or other endpoints may be temporarily unavailable. This can cause callers of, e.g. installer.Ensure(...), to fail intermittently.

For example:

Get "https://releases.hashicorp.com/terraform/1.4.6/index.json": read tcp 192.168.22.118:38854->18.161.6.90:443: read: connection reset by peer

Retrying the network calls could mitigate these failures

@radeksimko radeksimko added the enhancement New feature or request label Jun 7, 2023
@radeksimko
Copy link
Member

Hey @gdavison
This is a good idea!

FWIW we have observed same/similar problem popping up sporadically over in terraform-exec E2E nightly tests when running terraform init as providers also rely on releases.hashicorp.com. i.e. if you use hc-install to install Terraform and then execute it, there's more patching to do, also inside Terraform Core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants