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

[PLAT-106952] fix the bug that the delay should only happen if the sts has pods to be updated #3

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

jnyi
Copy link

@jnyi jnyi commented Apr 28, 2024

See:
Screenshot 2024-04-29 at 12 04 42 PM

Screenshot 2024-04-29 at 12 04 02 PM

ongoing, err := c.updateStatefulSetPods(ctx, sts)
if err != nil {
// Do not continue with other StatefulSets because this StatefulSet
// is expected to be successfully updated before proceeding.
c.updateLastUpdatedSts(sts)
Copy link
Author

@jnyi jnyi Apr 28, 2024

Choose a reason for hiding this comment

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

don't update last sts since it is an error, just let operator reconcile again

@jnyi jnyi requested a review from hczhu-db April 29, 2024 02:42
@christopherzli
Copy link
Collaborator

lgtm, would you also mind testing by manually deleting a pod during update?

@jnyi jnyi merged commit 72f7399 into databricks:main Apr 29, 2024
5 checks passed
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.

3 participants