-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --shards to the VReplication Workflow command. Only partial movet…
…ables supported, for safety and since that is the main use case of --shards. Signed-off-by: Rohit Nayak <[email protected]>
- Loading branch information
1 parent
be1e8f8
commit eaeba61
Showing
12 changed files
with
469 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"Workflow": "wrWorkflow", | ||
"SourceLocation": { | ||
"Keyspace": "source", | ||
"Shards": [ | ||
"0" | ||
] | ||
}, | ||
"TargetLocation": { | ||
"Keyspace": "target", | ||
"Shards": [ | ||
"80-" | ||
] | ||
}, | ||
"MaxVReplicationLag": 0, | ||
"MaxVReplicationTransactionLag": 0, | ||
"Frozen": false, | ||
"ShardStatuses": { | ||
"80-/zone1-0000000210": { | ||
"PrimaryReplicationStatuses": [ | ||
{ | ||
"Shard": "80-", | ||
"Tablet": "zone1-0000000210", | ||
"ID": 1, | ||
"Bls": { | ||
"keyspace": "source", | ||
"shard": "0", | ||
"filter": { | ||
"rules": [ | ||
{ | ||
"match": "t1" | ||
} | ||
] | ||
} | ||
}, | ||
"Pos": "14b68925-696a-11ea-aee7-fec597a91f5e:1-3", | ||
"StopPos": "", | ||
"State": "Copying", | ||
"DBName": "vt_target", | ||
"TransactionTimestamp": 0, | ||
"TimeUpdated": 1234, | ||
"TimeHeartbeat": 1234, | ||
"TimeThrottled": 0, | ||
"ComponentThrottled": "", | ||
"Message": "", | ||
"Tags": "", | ||
"WorkflowType": "Materialize", | ||
"WorkflowSubType": "None", | ||
"CopyState": [ | ||
{ | ||
"Table": "t1", | ||
"LastPK": "pk1" | ||
} | ||
], | ||
"RowsCopied": 1000 | ||
} | ||
], | ||
"TabletControls": null, | ||
"PrimaryIsServing": true | ||
} | ||
}, | ||
"SourceTimeZone": "", | ||
"TargetTimeZone": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
"Workflow": "wrWorkflow", | ||
"SourceLocation": { | ||
"Keyspace": "source", | ||
"Shards": [ | ||
"0" | ||
] | ||
}, | ||
"TargetLocation": { | ||
"Keyspace": "target", | ||
"Shards": [ | ||
"-80", | ||
"80-" | ||
] | ||
}, | ||
"MaxVReplicationLag": 0, | ||
"MaxVReplicationTransactionLag": 0, | ||
"Frozen": false, | ||
"ShardStatuses": { | ||
"-80/zone1-0000000200": { | ||
"PrimaryReplicationStatuses": [ | ||
{ | ||
"Shard": "-80", | ||
"Tablet": "zone1-0000000200", | ||
"ID": 1, | ||
"Bls": { | ||
"keyspace": "source", | ||
"shard": "0", | ||
"filter": { | ||
"rules": [ | ||
{ | ||
"match": "t1" | ||
} | ||
] | ||
} | ||
}, | ||
"Pos": "14b68925-696a-11ea-aee7-fec597a91f5e:1-3", | ||
"StopPos": "", | ||
"State": "Copying", | ||
"DBName": "vt_target", | ||
"TransactionTimestamp": 0, | ||
"TimeUpdated": 1234, | ||
"TimeHeartbeat": 1234, | ||
"TimeThrottled": 0, | ||
"ComponentThrottled": "", | ||
"Message": "", | ||
"Tags": "", | ||
"WorkflowType": "Materialize", | ||
"WorkflowSubType": "None", | ||
"CopyState": [ | ||
{ | ||
"Table": "t1", | ||
"LastPK": "pk1" | ||
} | ||
], | ||
"RowsCopied": 1000 | ||
} | ||
], | ||
"TabletControls": null, | ||
"PrimaryIsServing": true | ||
}, | ||
"80-/zone1-0000000210": { | ||
"PrimaryReplicationStatuses": [ | ||
{ | ||
"Shard": "80-", | ||
"Tablet": "zone1-0000000210", | ||
"ID": 1, | ||
"Bls": { | ||
"keyspace": "source", | ||
"shard": "0", | ||
"filter": { | ||
"rules": [ | ||
{ | ||
"match": "t1" | ||
} | ||
] | ||
} | ||
}, | ||
"Pos": "14b68925-696a-11ea-aee7-fec597a91f5e:1-3", | ||
"StopPos": "", | ||
"State": "Copying", | ||
"DBName": "vt_target", | ||
"TransactionTimestamp": 0, | ||
"TimeUpdated": 1234, | ||
"TimeHeartbeat": 1234, | ||
"TimeThrottled": 0, | ||
"ComponentThrottled": "", | ||
"Message": "", | ||
"Tags": "", | ||
"WorkflowType": "Materialize", | ||
"WorkflowSubType": "None", | ||
"CopyState": [ | ||
{ | ||
"Table": "t1", | ||
"LastPK": "pk1" | ||
} | ||
], | ||
"RowsCopied": 1000 | ||
} | ||
], | ||
"TabletControls": null, | ||
"PrimaryIsServing": true | ||
} | ||
}, | ||
"SourceTimeZone": "", | ||
"TargetTimeZone": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"Workflow": "wrWorkflow", | ||
"SourceLocation": { | ||
"Keyspace": "source", | ||
"Shards": [ | ||
"0" | ||
] | ||
}, | ||
"TargetLocation": { | ||
"Keyspace": "target", | ||
"Shards": [ | ||
"-80" | ||
] | ||
}, | ||
"MaxVReplicationLag": 0, | ||
"MaxVReplicationTransactionLag": 0, | ||
"Frozen": false, | ||
"ShardStatuses": { | ||
"-80/zone1-0000000200": { | ||
"PrimaryReplicationStatuses": [ | ||
{ | ||
"Shard": "-80", | ||
"Tablet": "zone1-0000000200", | ||
"ID": 1, | ||
"Bls": { | ||
"keyspace": "source", | ||
"shard": "0", | ||
"filter": { | ||
"rules": [ | ||
{ | ||
"match": "t1" | ||
} | ||
] | ||
} | ||
}, | ||
"Pos": "14b68925-696a-11ea-aee7-fec597a91f5e:1-3", | ||
"StopPos": "", | ||
"State": "Copying", | ||
"DBName": "vt_target", | ||
"TransactionTimestamp": 0, | ||
"TimeUpdated": 1234, | ||
"TimeHeartbeat": 1234, | ||
"TimeThrottled": 0, | ||
"ComponentThrottled": "", | ||
"Message": "", | ||
"Tags": "", | ||
"WorkflowType": "Materialize", | ||
"WorkflowSubType": "None", | ||
"CopyState": [ | ||
{ | ||
"Table": "t1", | ||
"LastPK": "pk1" | ||
} | ||
], | ||
"RowsCopied": 1000 | ||
} | ||
], | ||
"TabletControls": null, | ||
"PrimaryIsServing": true | ||
} | ||
}, | ||
"SourceTimeZone": "", | ||
"TargetTimeZone": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.