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

Merge InitShardPrimary functionality into PlannedReparentShard #9276

Merged
merged 18 commits into from
Dec 17, 2021

Conversation

GuptaManan100
Copy link
Member

@GuptaManan100 GuptaManan100 commented Nov 23, 2021

Description

This PR merges the functionality of InitShardPrimary and PlannedReparentShard, so that just calling PRS even for initialisation would be sufficient.

However, PlannedReparentShard would not do the destructive step of copying the executed gtid set from the new primary to all the other replicas. PlannedReparentShard is meant to be used for non-destructive repairable operations. For this use case, it is still advised that users use InitShardPrimary.

Related Issue(s)

Checklist

  • Should this PR be backported?
  • Tests were added or are not required
  • Documentation was added or is not required Documentation is required to say that PRS should be goto option to initialise the cluster Update docs for ISP and PRS website#930

Deployment Notes

Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
…vided

Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
…ary components correctly

Signed-off-by: Manan Gupta <manan@planetscale.com>
…setting the replication to stopped

Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
@GuptaManan100 GuptaManan100 marked this pull request as ready for review December 10, 2021 12:27
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
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.

LGTM. Nice work!
Let's wait for @sougou to give it a once-over before we merge.
Can you fix the little things I found in the meantime?

go/test/endtoend/vreplication/cluster.go Outdated Show resolved Hide resolved
go/vt/vtctl/reparentutil/planned_reparenter.go Outdated Show resolved Hide resolved
go/vt/vtctl/reparentutil/planned_reparenter.go Outdated Show resolved Hide resolved
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants