Skip to content
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

migrater: option to cancel a migration #5347

Merged
merged 4 commits into from
Oct 28, 2019

Conversation

sougou
Copy link
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
Member

@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 err != nil {
mi.wr.Logger().Errorf("buildStreamMigrater failed: %v", err)
return 0, err
}
if cancelMigrate {
mi.wr.Logger().Infof("Cancel was requested.")
mi.cancelMigration(ctx, sm)
Copy link
Member

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