-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fail VTBackup early when replication or MySQL is failing #17356
Conversation
Signed-off-by: Florent Poinsard <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17356 +/- ##
==========================================
- Coverage 67.69% 67.69% -0.01%
==========================================
Files 1585 1585
Lines 254904 254918 +14
==========================================
+ Hits 172565 172574 +9
- Misses 82339 82344 +5 ☔ View full report in Codecov by Sentry. |
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use LastError
as Matt suggested elsewhere.
5e0a361
to
dd21dbe
Compare
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
dd21dbe
to
17e06ec
Compare
17e06ec
to
2b75327
Compare
Signed-off-by: Florent Poinsard <[email protected]>
2b75327
to
80a3c87
Compare
Signed-off-by: Florent Poinsard <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and simple and clean, I love it! ❤️
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Description
As described in #17355 and #17043, vtbackup "ignores" replication failures and fatal mysql error. Leading to vtbackup processes undesirably running for longer than needed, or worse, stalling.
This Pull Request brings two new enhancements to vtbackup to solve both issues:
mysqld.OnFailure()
) and will cancel its context which will make the process exit faster.Related Issue(s)