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

Make timestamp authoritative for master information #8381

Merged
merged 5 commits into from
Jun 25, 2021

Conversation

GuptaManan100
Copy link
Member

Description

This PR makes it explicit in all the places and shard_sync that the timestamp for the master term is the authoritative source of information for who is the master. We sync the information between the tablet record and shard record based on the timestamp.

Related Issue(s)

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

…s old information

Signed-off-by: GuptaManan100 <manan@planetscale.com>
Signed-off-by: GuptaManan100 <manan@planetscale.com>
Signed-off-by: GuptaManan100 <manan@planetscale.com>
Signed-off-by: GuptaManan100 <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.

Looks good. We can merge once the review comments are addressed.

go/vt/vtctl/grpcvtctldserver/topo.go Show resolved Hide resolved
go/vt/vttablet/tabletmanager/shard_sync.go Outdated Show resolved Hide resolved
Signed-off-by: GuptaManan100 <manan@planetscale.com>
@harshit-gangal harshit-gangal merged commit a226c70 into vitessio:main Jun 25, 2021
@harshit-gangal harshit-gangal deleted the sync-shard branch June 25, 2021 09:55
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.

None yet

3 participants