| 1 |
--source include/have_ndb.inc |
| 2 |
|
| 3 |
--echo # |
| 4 |
--echo # Testing bug#21837074 |
| 5 |
--echo # |
| 6 |
|
| 7 |
CALL mtr.add_suppression("Incorrect information in file"); |
| 8 |
# Ignore the warning generated by ndbcluster's binlog thread |
| 9 |
# when cluster is restarted |
| 10 |
--disable_query_log ONCE |
| 11 |
call mtr.add_suppression("cluster disconnect An incident event has been written"); |
| 12 |
|
| 13 |
# Ignore the warning generated by ndbcluster's binlog thread |
| 14 |
# when cluster is restarted - also on the second mysqld |
| 15 |
connect(mysqld2,127.0.0.1,root,,test,$MASTER_MYPORT1); |
| 16 |
connection mysqld2; |
| 17 |
--disable_query_log ONCE |
| 18 |
call mtr.add_suppression("cluster disconnect An incident event has been written"); |
| 19 |
connection default; |
| 20 |
|
| 21 |
create table test.t1(i int primary key) engine=ndb; |
| 22 |
|
| 23 |
--echo # Restarting all the nodes with 'no start' |
| 24 |
--source ndb_restart_nostart.inc |
| 25 |
|
| 26 |
--error 1296,1297 |
| 27 |
show create table test.t1; |
| 28 |
--echo # Show create table failed as expected. Now starting the nodes again |
| 29 |
|
| 30 |
--echo # Start NDB nodes back up again. |
| 31 |
--source ndb_restart_start.inc |
| 32 |
|
| 33 |
--echo # Wait until mysqld has connected properly to cluster |
| 34 |
source include/ndb_not_readonly.inc; |
| 35 |
connection mysqld2; |
| 36 |
source include/ndb_not_readonly.inc; |
| 37 |
connection default; |
| 38 |
|
| 39 |
--echo # mysqld connected to cluster. Now running show create table again. |
| 40 |
--disable_warnings |
| 41 |
show create table test.t1; |
| 42 |
--enable_warnings |
| 43 |
|
| 44 |
#Clean Up |
| 45 |
drop table test.t1; |
| 46 |
--echo # End of bug#21837074 |
| 47 |
|
| 48 |
|