-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[workflow] extract migration targets from wrangler #7934
[workflow] extract migration targets from wrangler #7934
Conversation
Going to set this back to draft while I take time to look into the tests. I thought it was just a query formatting issue, but there might be something else going on. |
oooookay that was fun. re-opening!! |
2689685
to
df30470
Compare
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 is really straightforward from my perspective and makes sense. I think we should get @rohit-nayak-ps eyes just to make sure we get his input on this approach as well.
Organizational note: I'm planning on squashing this one. The commits are mainly there to break up the diff into reasonably-small chunks but this change really only makes sense logistically as one atomic commit. |
I'm going to rebase on master to try to get that |
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
…arget} types Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
…ckage, delete old func Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
Signed-off-by: Andrew Mason <amason@slack-corp.com>
…xact error strings Signed-off-by: Andrew Mason <amason@slack-corp.com>
df30470
to
55f8aab
Compare
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.
lgtm
nice set of refactors
// NewMigrationSource returns a MigrationSource for the given shard and primary. | ||
// | ||
// (TODO|@ajm188): do we always want to start with (position:"", journaled:false)? | ||
func NewMigrationSource(si *topo.ShardInfo, primary *topo.TabletInfo) *MigrationSource { |
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.
I see that there is no corresponding NewMigrationTarget() ... Is it because it only used in this file?
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.
Yeah, there has to be some temporarily public functions so that I can move things piecemeal (I think this is going to be temporary anyway, and if not I can come back and add the corresponding NewMigrationTarget!)
Description
This is the first in a series of PRs to make VDiff runnable from the new
grpcvtctldserver
(in order to do that we eventually need thevdiff
struct to be defined outside ofpackage wrangler
so that bothwrangler
andgrpcvtctldserver
can use it, so that's where this is headed).To start, I extracted
buildTargets
as a publicly exported function, and then updated all callsites to work on the new types. These should be functionally equivalent.In the next PR, I'll be looking at moving parts of
trafficSwitcher
struct topackage workflow
Related Issue(s)
Checklist
Deployment Notes
Impacted Areas in Vitess
Components that this PR will affect: