Skip to content

Validate SrvKeyspace during Reshard/SwitchReads#7481

Merged
rohit-nayak-ps merged 6 commits intovitessio:masterfrom
planetscale:rn-reshard-validate-srvkeyspace
Feb 19, 2021
Merged

Validate SrvKeyspace during Reshard/SwitchReads#7481
rohit-nayak-ps merged 6 commits intovitessio:masterfrom
planetscale:rn-reshard-validate-srvkeyspace

Conversation

@rohit-nayak-ps
Copy link
Member

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

Signed-off-by: Rohit Nayak rohit@planetscale.com

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
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.

One minor suggestion on error message.
Otherwise LGTM.

@rohit-nayak-ps rohit-nayak-ps force-pushed the rn-reshard-validate-srvkeyspace branch from 808f1bc to 5be8f23 Compare February 19, 2021 08:59
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
@rohit-nayak-ps rohit-nayak-ps force-pushed the rn-reshard-validate-srvkeyspace branch from 5be8f23 to 58b8028 Compare February 19, 2021 09:00
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
@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