-
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
Add -restart_before_backup
parameter for vtbackup
#8608
Conversation
a clean MySQL shutdown & startup cycle to work around xtrabackup bugs. Signed-off-by: Jacques Grove <[email protected]>
vtbackup can be run with either
|
Not sure I agree with this; limiting this to vtbackup only avoids someone doing the wrong thing when running xtrabackup against a live instance, and killing MySQL |
They would have to start vttablets with the flag for that to happen. We would still default it to false. |
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.
Based on an offline discussion, I'm ok with adding this flag just to vtbackup and not vttablet.
The reasoning is that for anyone using vitess-operator, there's currently no way to pass differing xtrabackup flags through vtbackup than the standard vttablet ones; so you wouldn't be able to vary this flag depending on whether you take an offline (vtbackup) backup or an online one (vttablet). We can revisit a vttablet flag when someone is able to make that change in concert with a vitess-operator change.
@aquarapid Can you rename the flag to reflect that we are doing a stop/start and not actually executing any FLUSH
statements?
Signed-off-by: Jacques Grove <[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.
LGTM
-full_flush
parameter for vtbackup, which performs-restart_before_backup
parameter for vtbackup
If this flag is set, we perform a clean MySQL shutdown & startup cycle to work around xtrabackup
DDL bugs (see https://jira.percona.com/browse/PXB-2205). xtrabackup flag
-lock-ddl
(which is the default) is not sufficient to fix this, and wehave run into this in real-world scenarios. See #8610
Signed-off-by: Jacques Grove [email protected]