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

Run /start on the background for pods and up the timeout #503

Merged
merged 6 commits into from
Mar 9, 2023

Conversation

burmanm
Copy link
Contributor

@burmanm burmanm commented Mar 8, 2023

What this PR does:
Increase the /start timeout from 10s to 10 mins, but run it on the background to prevent blocking other operations in cass-operator.

Which issue(s) this PR fixes:
Fixes #500

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

@burmanm burmanm requested a review from a team as a code owner March 8, 2023 16:49
@burmanm burmanm merged commit a5a7908 into k8ssandra:master Mar 9, 2023
"Starting Cassandra for pod %s", pod.Name)
err = mgmtClient.CallLifecycleStartEndpoint(pod)
}
go func(pod *corev1.Pod) {

Choose a reason for hiding this comment

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

I know, late comment, but it would have been great to see a comment here why this needs to run concurrently

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a background task to allow cass-operator to process next command. The Reconcile pattern should never block itself.

burmanm added a commit that referenced this pull request Mar 20, 2023
* Up Kustomize to 5.0.0

* CHANGELOG

* Update golangci-lint to prevent OOM with go1.20

* If old version of golangci-lint is installed, remove it and install a new one

* Fix the TestFailStart to take into account the async nature of start

(cherry picked from commit a5a7908)
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.

configurable timeout for lifecycle/start
3 participants