-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
upgrade: retry errors when dialing instances #109514
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @healthy-pod and @stevendanna)
pkg/upgrade/upgradecluster/tenant_cluster.go
line 238 at r1 (raw file):
MaxBackoff: 10 * time.Millisecond, } if err := retry.WithMaxAttempts(ctx, retryOpts, retryOpts.MaxRetries+1, func() error {
Nit: you can save the +1 here by making MaxRetries above 3.
Can you also add a comment here which describes that we're adding this retry to make our tests succeed and that, strictly speaking, it's not a change that is likely to benefit customers as much as it benefits us?
f7b1608
to
9d76f94
Compare
The value above is the number of retries but the value passed to the function call is the number of attempts hence why it's |
Release note: None Epic: none Closes cockroachdb#108860
9d76f94
to
1f6e734
Compare
bors r=ajstorm |
Timed out. |
bors retry |
Build succeeded: |
Release note: None
Epic: none
Closes #108860