-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Keyspace ServedFrom: remove this deprecated attribute and related code #14694
Conversation
Signed-off-by: Rohit Nayak <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Rohit Nayak <[email protected]>
// - 'vtctl SetShardTabletControl' emergency operations | ||
// - 'vtctl SourceShardAdd' and 'vtctl SourceShardDelete' emergency operations | ||
// | ||
// * keyspace-wide schema changes | ||
func (ts *Server) LockKeyspace(ctx context.Context, keyspace, action string) (context.Context, func(*error), error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this outdated comment. We should be using the IDE to find all Usages rather than maintaining such a list here.
return false | ||
} | ||
} | ||
if left.KeyspaceType != right.KeyspaceType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this check was repeated
Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice bit of cleanup! ❤️
proto/vttest.proto
Outdated
// redirects all traffic to another keyspace. If set, shards is ignored. | ||
string served_from = 5; | ||
|
||
//string served_from = 5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to note that it's OBSOLETE?
Signed-off-by: Rohit Nayak <[email protected]>
vitessio#14694) Signed-off-by: Rohit Nayak <[email protected]>
Description
ServedFrom
has been deprecated for a while since we deprecated the older resharding workflows. Remove all references to it from code and tests and mark related proto attributes as reserved.Related Issue(s)
Fixes #14695
Checklist