Skip to content

vtbackup: Retry fetching master position.#5192

Merged
enisoc merged 1 commit intovitessio:masterfrom
planetscale:vtbackup-retry
Sep 16, 2019
Merged

vtbackup: Retry fetching master position.#5192
enisoc merged 1 commit intovitessio:masterfrom
planetscale:vtbackup-retry

Conversation

@enisoc
Copy link
Copy Markdown
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

@enisoc enisoc requested a review from deepthi September 14, 2019 05:50
@enisoc enisoc requested a review from sougou as a code owner September 14, 2019 05:50
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.

lgtm, except for 1 nit.

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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