Skip to content

tabletmanager: Keep tablet and shard in sync.#5264

Merged
deepthi merged 2 commits intovitessio:reparent-refactorfrom
planetscale:tablet-shard-sync
Oct 4, 2019
Merged

tabletmanager: Keep tablet and shard in sync.#5264
deepthi merged 2 commits intovitessio:reparent-refactorfrom
planetscale:tablet-shard-sync

Conversation

@enisoc
Copy link
Copy Markdown
Member

@enisoc enisoc commented Oct 2, 2019

In particular, if we know we're master but the shard record is wrong,
update it. And if another tablet takes over the shard record by having a
more recent master term start time, we know we need to stop claiming to
be master.

Note: This is only merging into a feature branch for a WIP refactor.

enisoc added 2 commits October 1, 2019 15:11
Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
In particular, if we know we're master but the shard record is wrong,
update it. And if another tablet takes over the shard record by having a
more recent master term start time, we know we need to stop claiming to
be master.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
@enisoc enisoc requested a review from deepthi October 2, 2019 22:56
@enisoc enisoc requested a review from sougou as a code owner October 2, 2019 22:56
Copy link
Copy Markdown
Collaborator

@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.

Approving for merge into feature branch.

@deepthi deepthi merged commit 7e5e103 into vitessio:reparent-refactor Oct 4, 2019
@enisoc enisoc deleted the tablet-shard-sync branch October 4, 2019 18:29
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