-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Allow for specifying a specific MySQL shutdown timeout #17923
base: main
Are you sure you want to change the base?
Allow for specifying a specific MySQL shutdown timeout #17923
Conversation
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 #17923 +/- ##
==========================================
- Coverage 67.56% 67.54% -0.02%
==========================================
Files 1597 1597
Lines 259782 259810 +28
==========================================
- Hits 175516 175491 -25
- Misses 84266 84319 +53 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
I could not find E2E tests in the codebase where we run vtctldclient Backup/BackupShard
. It would be nice to add one.
Concurrency int32 | ||
IncrementalFromPos string | ||
UpgradeSafe bool | ||
MysqlShutdownTimeout time.Duration |
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.
New CLI documentation will have to be generated for this subcommand: https://vitess.io/docs/22.0/reference/programs/vtctldclient/vtctldclient_backup/
This should be picked up when we re-generate the CLI docs before v22.0.0, but just noting it here.
@frouioui we could add an end to end test, but it wouldn't really be to exercise the new option. Tests are really small scale setups here and to reproduce this kind of timeout problem specifically you need both a very large dataset and also modify it significantly before attempting the shutdown. If you're talking about just having something to validate it end to end, then sure, it does add some value for that. |
This adds an override flag to be able to set the shutdown timeout for MySQL for an individual backup without having to override the global flag for a tablet. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
9ab2cf2
to
5be710b
Compare
Wait, isn't this running through vitess/go/test/endtoend/backup/vtctlbackup/backup_utils.go Lines 478 to 482 in 209d940
So we already have this? |
@dbussink you are right, apologies for the oversight. |
This adds an override flag to be able to set the shutdown timeout for MySQL for an individual backup without having to override the global flag for a tablet.
Related Issue(s)
Fixes #17920
Checklist