-
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.
* Vectors: Online DDL support Signed-off-by: Shlomi Noach <[email protected]> * Add support for vectors in vreplication workflows. unit and e2e tests. Update cnf file to add loose_with_ps_vectors Signed-off-by: Rohit Nayak <[email protected]> * Self review fixes. Add e2e TestVector to CI Signed-off-by: Rohit Nayak <[email protected]> * Simplify unit test CI workflow to debug failure Signed-off-by: Rohit Nayak <[email protected]> * Skip test on errors on setting with_ps_vectors Signed-off-by: Rohit Nayak <[email protected]> * Revert debug mods to unit_race.yml Signed-off-by: Rohit Nayak <[email protected]> * Unit test race is again failing with no logs. So modify CI workflow temporarily to get full detail to debug random failures apparently unrelated to this PR Signed-off-by: Rohit Nayak <[email protected]> * Setup templating for vectors vreplication build Signed-off-by: Dirkjan Bussink <[email protected]> * Add vcopier unit test. Insert additional rows in e2e test after copy phase to test replication phase Signed-off-by: Rohit Nayak <[email protected]> * Switch shard for vector test to correct one Signed-off-by: Rohit Nayak <[email protected]> * Use vectors build for unit tests Signed-off-by: Dirkjan Bussink <[email protected]> * Refactor tests: move vector unit tests to separate files Signed-off-by: Rohit Nayak <[email protected]> * endtoend suite: filter with ONLINEDDL_SUITE_TEST_FILTER Signed-off-by: Shlomi Noach <[email protected]> * recognize ERVectorDimensionsMismatch = ErrorCode(4501) as unrecoverable Signed-off-by: Shlomi Noach <[email protected]> * add expected failign vector test. Rename vector tests Signed-off-by: Shlomi Noach <[email protected]> * recognize ERVectorDimensionsMismatch = ErrorCode(4501) as unrecoverable Signed-off-by: Shlomi Noach <[email protected]> * Unit race still failing without details:-(. Commenting out the summary code which seems to be redacting the details Signed-off-by: Rohit Nayak <[email protected]> * 'onlineddl_vrepl_suite' now requires a vectors build Signed-off-by: Shlomi Noach <[email protected]> * use vectors build Signed-off-by: Shlomi Noach <[email protected]> * update mysql version Signed-off-by: Shlomi Noach <[email protected]> --------- Signed-off-by: Shlomi Noach <[email protected]> Signed-off-by: Rohit Nayak <[email protected]> Signed-off-by: Dirkjan Bussink <[email protected]> Co-authored-by: Rohit Nayak <[email protected]> Co-authored-by: Dirkjan Bussink <[email protected]>
- Loading branch information
1 parent
554ef0e
commit 8865759
Showing
20 changed files
with
122 additions
and
6 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 |
---|---|---|
|
@@ -61,3 +61,4 @@ super-read-only | |
slave_net_timeout = 8 | ||
loose_with_ps_vectors = 1 | ||
|
||
loose_with_ps_vectors = 1 |
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
1 change: 1 addition & 0 deletions
1
go/test/endtoend/onlineddl/vrepl_suite/testdata/add-2nd-vector-key/alter
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 @@ | ||
add vector key v1_idx (v1) |
25 changes: 25 additions & 0 deletions
25
go/test/endtoend/onlineddl/vrepl_suite/testdata/add-2nd-vector-key/create.sql
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,25 @@ | ||
drop table if exists onlineddl_test; | ||
create table onlineddl_test ( | ||
id int auto_increment, | ||
v1 vector(5), | ||
v2 vector(5), | ||
primary key(id), | ||
vector key v2_idx (v2) | ||
) auto_increment=1; | ||
|
||
insert into onlineddl_test values (null, VEC_FromText('[1,1,1,1,1]'), VEC_FromText('[2,2,2,2,2]')); | ||
|
||
drop event if exists onlineddl_test; | ||
delimiter ;; | ||
create event onlineddl_test | ||
on schedule every 1 second | ||
starts current_timestamp | ||
ends current_timestamp + interval 60 second | ||
on completion not preserve | ||
enable | ||
do | ||
begin | ||
insert into onlineddl_test values (null, VEC_FromText('[3,3,3,3,3]'), VEC_FromText('[4,4,4,4,4]')); | ||
insert into onlineddl_test values (null, VEC_FromText('[5,5,5,5,5]'), VEC_FromText('[6,6,6,6,6]')); | ||
insert into onlineddl_test values (null, VEC_FromText('[7,7,7,7,7]'), VEC_FromText('[8,8,8,8,8]')); | ||
end ;; |
Empty file.
1 change: 1 addition & 0 deletions
1
go/test/endtoend/onlineddl/vrepl_suite/testdata/add-two-vector-keys/alter
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 @@ | ||
add vector key v1_idx (v1), add vector key v2_idx (v2) |
24 changes: 24 additions & 0 deletions
24
go/test/endtoend/onlineddl/vrepl_suite/testdata/add-two-vector-keys/create.sql
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,24 @@ | ||
drop table if exists onlineddl_test; | ||
create table onlineddl_test ( | ||
id int auto_increment, | ||
v1 vector(5), | ||
v2 vector(5), | ||
primary key(id) | ||
) auto_increment=1; | ||
|
||
insert into onlineddl_test values (null, VEC_FromText('[1,1,1,1,1]'), VEC_FromText('[2,2,2,2,2]')); | ||
|
||
drop event if exists onlineddl_test; | ||
delimiter ;; | ||
create event onlineddl_test | ||
on schedule every 1 second | ||
starts current_timestamp | ||
ends current_timestamp + interval 60 second | ||
on completion not preserve | ||
enable | ||
do | ||
begin | ||
insert into onlineddl_test values (null, VEC_FromText('[3,3,3,3,3]'), VEC_FromText('[3,3,3,3,3]')); | ||
insert into onlineddl_test values (null, VEC_FromText('[4,4,4,4,4]'), VEC_FromText('[5,5,5,5,5]')); | ||
insert into onlineddl_test values (null, VEC_FromText('[6,6,6,6,6]'), VEC_FromText('[7,7,7,7,7]')); | ||
end ;; |
Empty file.
1 change: 1 addition & 0 deletions
1
go/test/endtoend/onlineddl/vrepl_suite/testdata/add-vector-key/alter
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 @@ | ||
add vector key v1_idx (v1) |
24 changes: 24 additions & 0 deletions
24
go/test/endtoend/onlineddl/vrepl_suite/testdata/add-vector-key/create.sql
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,24 @@ | ||
drop table if exists onlineddl_test; | ||
create table onlineddl_test ( | ||
id int auto_increment, | ||
v1 vector(5), | ||
v2 vector(5), | ||
primary key(id) | ||
) auto_increment=1; | ||
|
||
insert into onlineddl_test values (null, VEC_FromText('[1,1,1,1,1]'), VEC_FromText('[2,2,2,2,2]')); | ||
|
||
drop event if exists onlineddl_test; | ||
delimiter ;; | ||
create event onlineddl_test | ||
on schedule every 1 second | ||
starts current_timestamp | ||
ends current_timestamp + interval 60 second | ||
on completion not preserve | ||
enable | ||
do | ||
begin | ||
insert into onlineddl_test values (null, VEC_FromText('[3,3,3,3,3]'), VEC_FromText('[4,4,4,4,4]')); | ||
insert into onlineddl_test values (null, VEC_FromText('[5,5,5,5,5]'), VEC_FromText('[6,6,6,6,6]')); | ||
insert into onlineddl_test values (null, VEC_FromText('[7,7,7,7,7]'), VEC_FromText('[8,8,8,8,8]')); | ||
end ;; |
Empty file.
1 change: 1 addition & 0 deletions
1
go/test/endtoend/onlineddl/vrepl_suite/testdata/fail-modify-vector-length/alter
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 @@ | ||
modify v1 vector(6) |
24 changes: 24 additions & 0 deletions
24
go/test/endtoend/onlineddl/vrepl_suite/testdata/fail-modify-vector-length/create.sql
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,24 @@ | ||
drop table if exists onlineddl_test; | ||
create table onlineddl_test ( | ||
id int auto_increment, | ||
v1 vector(5), | ||
v2 vector(5), | ||
primary key(id) | ||
) auto_increment=1; | ||
|
||
insert into onlineddl_test values (null, VEC_FromText('[1,1,1,1,1]'), VEC_FromText('[2,2,2,2,2]')); | ||
|
||
drop event if exists onlineddl_test; | ||
delimiter ;; | ||
create event onlineddl_test | ||
on schedule every 1 second | ||
starts current_timestamp | ||
ends current_timestamp + interval 60 second | ||
on completion not preserve | ||
enable | ||
do | ||
begin | ||
insert into onlineddl_test values (null, VEC_FromText('[3,3,3,3,3]'), VEC_FromText('[4,4,4,4,4]')); | ||
insert into onlineddl_test values (null, VEC_FromText('[5,5,5,5,5]'), VEC_FromText('[6,6,6,6,6]')); | ||
insert into onlineddl_test values (null, VEC_FromText('[7,7,7,7,7]'), VEC_FromText('[8,8,8,8,8]')); | ||
end ;; |
1 change: 1 addition & 0 deletions
1
go/test/endtoend/onlineddl/vrepl_suite/testdata/fail-modify-vector-length/expect_failure
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 @@ | ||
Vector object dimensions must match |
Empty file.
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