| 1 |
--source include/have_ndb.inc |
| 2 |
--source include/have_ndb_debug.inc |
| 3 |
|
| 4 |
call mtr.add_suppression("Could not acquire global schema lock"); |
| 5 |
|
| 6 |
# |
| 7 |
# Setup |
| 8 |
# |
| 9 |
|
| 10 |
# |
| 11 |
# Test reconnect after slow system restart |
| 12 |
# |
| 13 |
--exec $NDB_MGM -e "ALL RESTART -N" >> $NDB_TOOLS_OUTPUT |
| 14 |
--exec $NDB_WAITER --not-started |
| 15 |
# Cause system restart to stall on late stages |
| 16 |
--exec $NDB_MGM -e "ALL ERROR 13053" >> $NDB_TOOLS_OUTPUT |
| 17 |
--exec $NDB_MGM -e "ALL START" >> $NDB_TOOLS_OUTPUT |
| 18 |
|
| 19 |
--let $_ndb_nodeid = 1 |
| 20 |
--let $_start_phase = 100 |
| 21 |
|
| 22 |
--source suite/ndb/t/ndb_wait_start_phase.inc |
| 23 |
|
| 24 |
--echo Giving BI threads time to get stuck |
| 25 |
--sleep 10 |
| 26 |
|
| 27 |
--echo Removing error insert |
| 28 |
--exec $NDB_MGM -e "ALL ERROR 0" >> $NDB_TOOLS_OUTPUT |
| 29 |
|
| 30 |
--echo Wait for cluster to become writeable |
| 31 |
--source include/ndb_not_readonly.inc |
| 32 |
|
| 33 |
--echo Show cluster writeable |
| 34 |
create table test.t1 (a int primary key, b text, c int, unique(c)) engine=ndb; |
| 35 |
insert into test.t1 values (1, repeat("BJC", 1000), 2); |
| 36 |
drop table test.t1; |
| 37 |
|
| 38 |
--echo Done |
| 39 |
|
| 40 |
--remove_file $NDB_TOOLS_OUTPUT |