| 1 |
--source include/have_ndb.inc |
| 2 |
--source have_ndb_error_insert.inc |
| 3 |
|
| 4 |
call mtr.add_suppression("Failed to release global schema lock"); |
| 5 |
|
| 6 |
create table t (x int primary key, y int) engine ndbcluster partition by key() partitions 4; |
| 7 |
|
| 8 |
begin; |
| 9 |
# key 0 -> part 0 |
| 10 |
# key 1 -> part 3 |
| 11 |
# key 2 -> part 1 |
| 12 |
# key 3 -> part 2 |
| 13 |
insert into t values (3,3); |
| 14 |
insert into t values (1,1); |
| 15 |
insert into t values (0,0); |
| 16 |
insert into t values (2,2); |
| 17 |
insert into t values (4,4),(5,5),(6,6),(7,7),(8,8),(9,9); |
| 18 |
insert into t select x + 10, y + 10 from t; |
| 19 |
insert into t select x + 20, y + 20 from t; |
| 20 |
error 0,1296; |
| 21 |
insert into t select x + 40, y + 40 from t; |
| 22 |
show warnings; |
| 23 |
insert into t select x + 80, y + 80 from t; |
| 24 |
exec $NDB_MGM -e "2 error 8030"; |
| 25 |
--error ER_ERROR_DURING_COMMIT |
| 26 |
commit; |
| 27 |
show warnings; |
| 28 |
|
| 29 |
exec $NDB_SELECT_ALL --rowid -d test t; |
| 30 |
select * from t; |
| 31 |
|
| 32 |
drop table t; |
| 33 |
|
| 34 |
exec $NDB_WAITER >> $NDB_TOOLS_OUTPUT; |
| 35 |
remove_file $NDB_TOOLS_OUTPUT; |