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

Online DDL workflows stall permanently with a "wrong tablet type" error #16646

Closed
rohit-nayak-ps opened this issue Aug 25, 2024 · 1 comment
Closed
Labels

Comments

@rohit-nayak-ps
Copy link
Contributor

Feature Description

There have been multiple reports of failed online ddl migrations where they return the following error:
"error": "vttablet: rpc error: code = FailedPrecondition desc = wrong tablet type: PRIMARY, want: REPLICA or []". These are treated by the vreplication workflows as non-recoverable.

On restarting the migrations manually the workflow proceeds, because the picker now gets the updated tablet record (or selects a different tablet).

Use Case(s)

On investigation it appears that the tablet picker is choosing a REPLICA tablet for streaming from. However there is a race where the tablet gets promoted because of a PRS causing the subsequent VStream rpc to fail because the tablet type in the request doesn't match.

@deepthi
Copy link
Member

deepthi commented Aug 27, 2024

PR should have said "Fixes #16646" and closed this issue.

@deepthi deepthi closed this as completed Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants