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

Update timeouts and clean up constants #61

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

erademacher
Copy link
Contributor

Cluster update operations can take a pretty long time, especially multiregion clusters. We had an SE bump into the timeout, even though it was still chugging along. Bumped it to 2 hours. Dropped the endpoint connection timeout to 10 minutes (usually completes in ~30s). Left cluster and endpoint service creation unchanged.

Generally refactored timeout constants, and also a couple unrelated cluster state constants that were hard coded and at risk of going out of sync with the API.

Also opportunistically fixed a fixed a segfault that happened if a call to GetCluster fails in the wait loop, trying to copy the value of a nil cluster pointer.

Add a description of the problem this PR addresses and an overview of how this PR works.

Copy link

@ryanluu12345 ryanluu12345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @marksoper)

Cluster update operations can take a pretty long time, especially
multiregion clusters. We had an SE bump into the timeout, even though
it was still chugging along. Bumped it to 2 hours. Dropped the endpoint
connection timeout to 10 minutes (usually completes in ~30s). Left
cluster and endpoint service creation unchanged.

Generally refactored timeout constants, and also a couple unrelated
cluster state constants that were hard coded and at risk of going out
of sync with the API.

Also opportunistically fixed a fixed a segfault that happened if
a call to GetCluster fails in the wait loop, trying to copy the
value of a nil cluster pointer.
@erademacher erademacher merged commit d57f5f9 into main Nov 16, 2022
@erademacher erademacher deleted the bump_cluster_update_timeout branch November 16, 2022 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants