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

Validate SrvKeyspace during Reshard/SwitchReads #7481

Merged

Conversation

rohit-nayak-ps
Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps commented Feb 10, 2021

Signed-off-by: Rohit Nayak [email protected]

Description

There have been a few reports where SwitchReads fail with a keyspace partition for MASTER in cell xxxx does not start with min key error. This error happens when the SrvKeyspace is inconsistent. This PR adds validations to check that the SrvKeyspace is consistent while creating a workflow and before and after workflow state changes. Hopefully if there is a bug these checks and added logs will help surface it, or it will alert the user in case the SrvVSchema was not consistent before invoking a vrep command.

Checklist

  • Should this PR be backported?
  • Tests were added or are not required
  • Documentation was added or is not required

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving
  • VReplication
  • Cluster Management
  • Build/CI
  • VTAdmin

@rohit-nayak-ps rohit-nayak-ps marked this pull request as ready for review February 18, 2021 13:42
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.

One minor suggestion on error message.
Otherwise LGTM.

go/vt/wrangler/resharder.go Outdated Show resolved Hide resolved
@rohit-nayak-ps rohit-nayak-ps force-pushed the rn-reshard-validate-srvkeyspace branch from 808f1bc to 5be8f23 Compare February 19, 2021 08:59
@rohit-nayak-ps rohit-nayak-ps force-pushed the rn-reshard-validate-srvkeyspace branch from 5be8f23 to 58b8028 Compare February 19, 2021 09:00
@rohit-nayak-ps rohit-nayak-ps merged commit 234a412 into vitessio:master Feb 19, 2021
@rohit-nayak-ps rohit-nayak-ps deleted the rn-reshard-validate-srvkeyspace branch February 19, 2021 10:14
@askdba askdba added this to the v10.0 milestone Feb 22, 2021
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.

3 participants