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

Catch RetiredException in BackupHandler to avoid StopNow race condition #5105

Merged
merged 1 commit into from Mar 4, 2024

Conversation

Jojo-1000
Copy link
Contributor

Closes #4980

There seems to be no way to reliably check whether the channel is retired, so I handle the RetiredException which should fix the random test failures for StopNow that occur sometimes (most recently in this build). The CoCoL examples also uses the exception to handle retired channels.

@kenkendk
Copy link
Member

Looks good. And yes, the retired exception is the only way to reliably detect a closed channel without races.

@kenkendk kenkendk merged commit 07da566 into duplicati:master Mar 4, 2024
5 checks passed
@duplicatibot
Copy link

This pull request has been mentioned on Duplicati. There might be relevant details there:

https://forum.duplicati.com/t/how-to-recover-from-aborted-stuck-crashed-backup-run/17818/5

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.

Race condition when checking if retired (StopNow)
3 participants