Skip to content

update upgrade task status timestamp safely #5317

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

Merged
merged 2 commits into from
May 12, 2025

Conversation

sgalsaleh
Copy link
Member

What this PR does / why we need it:

Updates upgrade task status timestamp safely in case of panics so they don't halt the upgrade progress in the UI if rqlite temporarily lost quorum.

Which issue(s) this PR fixes:

SC-123136

Does this PR require a test?

Does this PR require a release note?

NONE

Does this PR require documentation?

NONE

@sgalsaleh sgalsaleh requested a review from emosbaugh May 10, 2025 01:39
@sgalsaleh sgalsaleh added type::bug Something isn't working bug::normal labels May 10, 2025
Copy link
Member

@emosbaugh emosbaugh left a comment

Choose a reason for hiding this comment

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

Why handle the recover here and not higher up the stack here?

@sgalsaleh sgalsaleh force-pushed the salah/sc-123136/kots-upgrade-fails-with-panic branch from 572169d to 626aa56 Compare May 12, 2025 15:17
@sgalsaleh
Copy link
Member Author

Because we don't want the upgrade to fail completely for this transient rqlite error.

@sgalsaleh sgalsaleh merged commit b51214b into main May 12, 2025
184 checks passed
@sgalsaleh sgalsaleh deleted the salah/sc-123136/kots-upgrade-fails-with-panic branch May 12, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug::normal type::bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants