| 1 |
--source include/have_ndb.inc |
| 2 |
--source include/have_debug.inc |
| 3 |
|
| 4 |
# |
| 5 |
# Test behaviour of delete statement execution |
| 6 |
# when failing to start a transaction, which is |
| 7 |
# one potential symptom of asynchronously losing |
| 8 |
# a connection to the cluster |
| 9 |
# |
| 10 |
# Related bug : 20116393 |
| 11 |
# |
| 12 |
create table t1 (a int primary key, b int) engine=ndb; |
| 13 |
insert into t1 values |
| 14 |
(1,1), |
| 15 |
(2,2), |
| 16 |
(3,3), |
| 17 |
(4,4), |
| 18 |
(5,5), |
| 19 |
(6,6), |
| 20 |
(7,7), |
| 21 |
(8,8); |
| 22 |
|
| 23 |
set @save_debug=@@debug; |
| 24 |
set debug='+d,ndb_fail_start_trans'; |
| 25 |
|
| 26 |
# Table scan |
| 27 |
--error ER_GET_ERRMSG |
| 28 |
delete from t1; |
| 29 |
|
| 30 |
# OI scan |
| 31 |
--error ER_GET_ERRMSG |
| 32 |
delete from t1 where a > 5; |
| 33 |
|
| 34 |
set debug=@save_debug; |
| 35 |
|
| 36 |
drop table t1; |