1
-- source include/have_ndb.inc
2
-- source include/have_binlog_format_mixed_or_row.inc
3
-- source include/not_windows.inc
6
drop table if exists t1,t2;
8
set ndb_table_temporary=0;
13
# Bug #14516 Restart of cluster can cause NDB API replication failure
15
create table t2 (a int key) engine=ndb;
17
# Unreported bug, online altered table causes system restart to fail
19
alter table t2 rename t1;
21
--exec $NDB_MGM --no-defaults -e "all restart -n" > /dev/null
22
--exec $NDB_WAITER --no-defaults --not-started > /dev/null
23
--exec $NDB_MGM --no-defaults -e "all start" > /dev/null
24
--exec $NDB_WAITER --no-defaults > /dev/null
30
# Table t1 is readonly until the mysqld has reconnected properly
32
insert into t1 values(1);
40
# check that data went in ok
43
--source include/show_binlog_events2.inc
44
PURGE MASTER LOGS TO 'mysqld-bin.000002';
46
--source include/show_binlog_events2.inc