Skip to content

Improve detection of failures in cluster backup rsync threads #301

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 4 commits into from
May 31, 2017

Conversation

snh
Copy link
Member

@snh snh commented May 11, 2017

When performing a repositories backup from a cluster, only the exit code of the last rsync thread to exit was being inspected. As a result, if one of the other threads exited non-zero, this was not detected, which could lead to undetected backup failures, and a backup being incorrectly considered successful.

This change ensures that all threads return zero on exit, rather than just the last thread to exit.

/cc @github/backup-utils

snh added 2 commits April 5, 2017 12:30
This will allow us to pass the exit code for each sync_data process
through to the parent script.
@snh snh requested a review from rubiojr May 18, 2017 03:02
@snh snh merged commit bbc2294 into master May 31, 2017
@snh snh deleted the snh/catch-nonzero branch May 31, 2017 22:09
@snh snh mentioned this pull request Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants