Replicas should be able to heal if replication is not initialised properly#10943
Merged
deepthi merged 2 commits intovitessio:mainfrom Aug 9, 2022
Merged
Replicas should be able to heal if replication is not initialised properly#10943deepthi merged 2 commits intovitessio:mainfrom
deepthi merged 2 commits intovitessio:mainfrom
Conversation
…SourceLocked when required Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Collaborator
|
Can you create an issue that describes the problem? I think it is important for this particular issue for us to document it. |
systay
pushed a commit
to planetscale/vitess
that referenced
this pull request
Aug 19, 2022
…tialised properly vitessio#10943 (vitessio#935) * Replicas should be able to heal if replication is not initialised properly (vitessio#10943) * feat: add code to also reset replication parameters in setReplicationSourceLocked when required Signed-off-by: Manan Gupta <manan@planetscale.com> * test: fix tests to reflect the change Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: fix vtworker tests Signed-off-by: Manan Gupta <manan@planetscale.com>
4 tasks
timvaillancourt
pushed a commit
to slackhq/vitess
that referenced
this pull request
Aug 16, 2023
…perly (vitessio#10943) * feat: add code to also reset replication parameters in setReplicationSourceLocked when required Signed-off-by: Manan Gupta <manan@planetscale.com> * test: fix tests to reflect the change Signed-off-by: Manan Gupta <manan@planetscale.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses the issue raised in #10955. The way to repair replication once it is stuck as described in #10955, is to call
RESET REPLICAand then tryingSTART REPLICAagain.The proposed solution is to always
RESET REPLICAinsetReplicationSourceLockedwhen we change the primary source/port or whenforceStartReplicationis specified.This allows both VTOrc and the replication manager to be able to address this issue since they both call
setReplicationSourceLockedwith forceStartReplication.Related Issue(s)
Checklist
Deployment Notes