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

Backport upstream: do not demote a new primary after backup completion (#12856) #423

Closed
wants to merge 3 commits into from

Conversation

tanjinx
Copy link

@tanjinx tanjinx commented Jun 24, 2024

  • do not demote a new primary after backup completion

  • move set replication source out of vtctld and into tablet

  • remove set replication source in vtctld

  • fix ctx, and wip test

  • add e2e test instead of unit test

  • use built in methods

  • omit this in test

  • Update go/vt/vttablet/tabletmanager/rpc_backup.go

  • move wg done to top of func

  • fix method change

  • try running this in isolation

  • try running this in isolation, dont run with others

  • add debug logging

  • add debug logging

  • Update go/test/endtoend/backup/vtctlbackup/backup_utils.go

  • Update go/test/endtoend/backup/vtctlbackup/backup_utils.go

  • run goimports

  • remove dupe

  • remove generated file


Description

backport vitessio#12856

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on the CI
  • Documentation was added or is not required

Deployment Notes

* do not demote a new primary after backup completion

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* move set replication source out of vtctld and into tablet

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* remove set replication source in vtctld

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* fix ctx, and wip test

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* add e2e test instead of unit test

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* use built in methods

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* omit this in test

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* Update go/vt/vttablet/tabletmanager/rpc_backup.go

Co-authored-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Olga Shestopalova <olgash@mit.edu>
Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* move wg done to top of func

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* fix method change

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>
Signed-off-by: <oshestopalova@hubspot.com>
Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* try running this in isolation

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* try running this in isolation, dont run with others

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* add debug logging

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* add debug logging

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* Update go/test/endtoend/backup/vtctlbackup/backup_utils.go

Co-authored-by: Manan Gupta <35839558+GuptaManan100@users.noreply.github.com>
Signed-off-by: Olga Shestopalova <olgash@mit.edu>

* Update go/test/endtoend/backup/vtctlbackup/backup_utils.go

Co-authored-by: Manan Gupta <35839558+GuptaManan100@users.noreply.github.com>
Signed-off-by: Olga Shestopalova <olgash@mit.edu>

* run goimports

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* remove dupe

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

* remove generated file

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>

---------

Signed-off-by: Olga Shestopalova <oshestopalova@hubspot.com>
Signed-off-by: Olga Shestopalova <olgash@mit.edu>
Signed-off-by: <oshestopalova@hubspot.com>
Co-authored-by: Olga Shestopalova <oshestopalova@hubspot.com>
Co-authored-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Co-authored-by: Manan Gupta <35839558+GuptaManan100@users.noreply.github.com>
@tanjinx tanjinx requested a review from a team as a code owner June 24, 2024 17:46
Copy link

Thanks for the contribution! Before we can merge this, we need @olyazavr to sign the Salesforce Inc. Contributor License Agreement.

@github-actions github-actions bot added this to the v15.0.5 milestone Jun 24, 2024
@tanjinx tanjinx added v15-backport v15 bug Something isn't working labels Jun 24, 2024
vmogilev
vmogilev previously approved these changes Jun 25, 2024
@tanjinx
Copy link
Author

tanjinx commented Jun 25, 2024

just realized later, engine.ShouldDrainForBackup() is always false for us as we use xtrabackup, so this patch does not apply to us, closing..

@tanjinx tanjinx closed this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants