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

vtbackup: Retry fetching master position. #5192

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

enisoc
Copy link
Member

@enisoc enisoc commented Sep 14, 2019

We've seen that this could get stuck if vtbackup happens to read the
master tablet record while the tablet is unreachable, and then the
tablet comes back up with a different address. This adds a retry that
re-reads the shard and tablet records to pick up any changes in the
master alias or tablet address.

Signed-off-by: Anthony Yeh enisoc@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, except for 1 nit.


select {
case <-ctx.Done():
log.Errorf("Not retrying error: %v", ctx.Err())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "Not retrying after error:"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

We've seen that this could get stuck if vtbackup happens to read the
master tablet record while the tablet is unreachable, and then the
tablet comes back up with a different address. This adds a retry that
re-reads the shard and tablet records to pick up any changes in the
master alias or tablet address.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
@enisoc enisoc merged commit 250a2fe into vitessio:master Sep 16, 2019
@enisoc enisoc deleted the vtbackup-retry branch September 16, 2019 19:05
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