Skip to content

migrater: option to cancel a migration#5347

Merged
sougou merged 4 commits intovitessio:masterfrom
planetscale:ss-vrepl-cancel-migrate
Oct 28, 2019
Merged

migrater: option to cancel a migration#5347
sougou merged 4 commits intovitessio:masterfrom
planetscale:ss-vrepl-cancel-migrate

Conversation

@sougou
Copy link
Copy Markdown
Contributor

@sougou sougou commented Oct 24, 2019

If a MigrateWrites fails, and also fails to undo what it's done. You can explicitly ask for a retry of the cancelation with this new option.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
@sougou sougou requested a review from deepthi October 24, 2019 18:40
Copy link
Copy Markdown
Collaborator

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except for one error message.

}
if cancelMigrate {
mi.wr.Logger().Infof("Cancel was requested.")
mi.cancelMigration(ctx, sm)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error message in line 682 should be changed, it seems to be the same as the one above it.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
@sougou sougou merged commit 4198bee into vitessio:master Oct 28, 2019
@sougou sougou deleted the ss-vrepl-cancel-migrate branch October 28, 2019 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants