Skip to content

Backport: Respect -disable_active_reparents in backup/restore#8063

Merged
systay merged 1 commit intovitessio:release-9.0from
planetscale:backport-9.0.1
May 6, 2021
Merged

Backport: Respect -disable_active_reparents in backup/restore#8063
systay merged 1 commit intovitessio:release-9.0from
planetscale:backport-9.0.1

Conversation

@frouioui
Copy link
Copy Markdown
Member

@frouioui frouioui commented May 6, 2021

Description

When the vttablet flag -disable_active_reparents is set, then vitess should not be managing the mysql level replication.
However, it turns out that this was not being respected by backup/restore.
This PR fixes that by adding checks of the flag before restarting replication after a backup/restore. In terms of backup, this is only applicable to offline backups.
In addition, we put the vttablet into orchestrator maintenance mode during backup/restore. We require replication to be off and we do not want orchestrator noticing that it is off and enabling it again while a backup or restore is in progress.

Related Issue(s)

Backport of #7576

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

…t. Also, Begin and End Maintenance on orchestrator

backup: do not restart replication if disable_active_reparents is set. Also, Begin and End Maintenance on orchestrator

Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
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.

4 participants