-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Replicas should be able to heal if replication is not initialised properly #10943
Conversation
…SourceLocked when required Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Can you create an issue that describes the problem? I think it is important for this particular issue for us to document it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. LGTM
…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>
…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>
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 REPLICA
and then tryingSTART REPLICA
again.The proposed solution is to always
RESET REPLICA
insetReplicationSourceLocked
when we change the primary source/port or whenforceStartReplication
is specified.This allows both VTOrc and the replication manager to be able to address this issue since they both call
setReplicationSourceLocked
with forceStartReplication.Related Issue(s)
Checklist
Deployment Notes