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

fix: skip updating the status if the backup has already completed or failed #1211

Conversation

ChanYiLin
Copy link
Contributor

ref: longhorn/longhorn#9168

To prevent race conditions where some goroutines might update the status to 'In Progress' after the backup has already completed or failed, we should skip updating the status in such cases.

…d or has failed

ref: longhorn/longhorn 9168

Signed-off-by: Jack Lin <jack.lin@suse.com>
@ChanYiLin ChanYiLin self-assigned this Sep 4, 2024
Copy link
Member

@derekbit derekbit left a comment

Choose a reason for hiding this comment

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

LGTM

@derekbit derekbit merged commit ecfa3c2 into longhorn:master Sep 5, 2024
11 checks passed
@derekbit
Copy link
Member

derekbit commented Sep 5, 2024

@mergify backport v1.7.x

Copy link

mergify bot commented Sep 5, 2024

backport v1.7.x

✅ Backports have been created

@ChanYiLin
Copy link
Contributor Author

@mergify backport v1.6.x

Copy link

mergify bot commented Sep 5, 2024

backport v1.6.x

✅ Backports have been created

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