| 1 |
use test; |
| 2 |
create table test.t1 (a int primary key, b int) engine=ndb; |
| 3 |
insert into test.t1 values (1,1), (2,2), (3,3), (4,4); |
| 4 |
Set TC Transaction Inactive Timeout to 5s |
| 5 |
begin; |
| 6 |
insert ignore into test.t1 values (5,5), (3,6), (7,7); |
| 7 |
Warnings: |
| 8 |
Warning 1062 Duplicate entry '3' for key 't1.PRIMARY' |
| 9 |
Waiting for a while so that TC rolls back |
| 10 |
the transaction |
| 11 |
Committing the transaction, expect already rolled back error |
| 12 |
commit; |
| 13 |
ERROR HY000: Lock wait timeout exceeded; try restarting transaction |
| 14 |
drop table test.t1; |