-
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
VReplication: Migrate intra-keyspace materialize workflows when Resharding the keyspace #15536
VReplication: Migrate intra-keyspace materialize workflows when Resharding the keyspace #15536
Conversation
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
|
4ed312d
to
6c1ca69
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15536 +/- ##
==========================================
- Coverage 68.39% 68.38% -0.01%
==========================================
Files 1556 1556
Lines 195283 195356 +73
==========================================
+ Hits 133563 133596 +33
- Misses 61720 61760 +40 ☔ View full report in Codecov by Sentry. |
6c1ca69
to
e5017e8
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
…ource And some additional changes Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
e6baab9
to
36003a5
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
36003a5
to
5c32193
Compare
…ource Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
3766f6a
to
63f9ec6
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
1. Add comments to the workflow update related proto messages 2. Remove/reserve an unused shards field in the WorkflowUpdateRequest msg 3. Add a wait to the mulit_tenant_test to address an obvserved flake Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
…ource Signed-off-by: Matt Lord <mattalord@gmail.com>
67124e9
to
3027347
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
Great work fixing this issue. A couple of comments:
|
Yes, we only do that for MoveTables today: vitess/go/vt/vtctl/workflow/materializer.go Lines 554 to 562 in 9e40015
I agree that we should expand that for other workflow types (including Materialize).
We currently compare the row counts at the end in the source table with both materialized tables. I'll look into doing a VDiff instead / in addition. Thanks! |
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
We can resurrect this when we get to the work of replacing the VReplicationExec calls to update the stop_pos with SQL by using the new tabletmanager RPCs. Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
…ource Signed-off-by: Matt Lord <mattalord@gmail.com>
Description
Intra-keyspace materializations were not properly migrated during Reshards. This PR corrects that so that they are properly migrated during Reshard (from the old shards to the new, support switching traffic in both directions).
This is likely to be more important going forward as more users leverage sharded keyspaces, which at some point need to be resharded, along with materializations and reference tables within the sharded keyspace to support data locality for some their queries which don't align with the primary sharding scheme (vindexes).
This is ONLY being fixed in the
vtctldclient
implementation, as we want to keep the oldvtctlclient
implementation "on ice" as a fallback mechanism until we can remove it. There are also no plans to backport this fix since it's a "beginning of time" bug and could have unintended side effects that we catch during the v20 development cycle.Related Issue(s)
Checklist