Add restore_extra_restart_args for restore#8929
Add restore_extra_restart_args for restore#89295antelope wants to merge 1 commit intovitessio:mainfrom
Conversation
Signed-off-by: Yang Wu <y.wu4515@gmail.com>
|
I'm surprised that you are running into this. What version are you at? This should be fixed by #8362 |
|
@deepthi it's in the restore code path: https://github.com/vitessio/vitess/blob/main/go/vt/mysqlctl/backup.go#L349 where then it uses vt_dba to create db: vitess/go/vt/mysqlctl/metadata_tables.go Line 85 in 93c811b It's not about super privileges, we set |
|
I think I need to go back and read what the code was before #8107. It is being assumed that |
|
Gentle nudge on this PR, thanks! /cc @aquarapid |
|
Me and @deepthi discussed the use case for this PR and we think that we should always add The code for metadata tables in restore is future-proof in the sense that if there are new tables added to the metadata in a future release, having this code makes it so that you will able to use backups from a previous release without worrying about these metadata tables. This makes the process of upgrades much smoother, so we want to keep that code. @Sonne5 could you change the PR to add that argument directly instead of adding a new flag? |
…8929 Signed-off-by: Jacques Grove <aquarapid@gmail.com>
Set super_read_only off during restore; achieves same as PR #8929
Signed-off-by: Yang Wu y.wu4515@gmail.com
Description
When we do a
RestoreFromBackupmysqld is bring up with "--skip-grant-tables", "--skip-networking". However, depends on the settings in my.cnf, these two might not be enough.For example, some people might choose to set mysql with super_read_only, which means with current setup, the restore won't go through because we need to call
create tablein PopulateMetadataTablesThis PR adds
restore_extra_restart_argsparameter, so that ppl can pass in any extra parameters to bring up mysqld (e.g.,--super-read-only=OFF)Related Issue(s)
^
Checklist
Deployment Notes