| 1 |
--source include/have_ndb.inc |
| 2 |
--source suite/ndb/t/have_ndb_error_insert.inc |
| 3 |
|
| 4 |
--disable_query_log |
| 5 |
call mtr.add_suppression(".*Node failure caused abort of transaction.*"); |
| 6 |
call mtr.add_suppression("cluster disconnect An incident event has been written"); |
| 7 |
|
| 8 |
--enable_query_log |
| 9 |
|
| 10 |
# Restart half cluster, but without starting nodes |
| 11 |
--exec $NDB_MGM -e "2 restart -n" |
| 12 |
--exec $NDB_MGM -e "4 restart -n" |
| 13 |
--exec $NDB_WAITER --not-started --wait-nodes=2,4 |
| 14 |
|
| 15 |
# Discard one CONNECT_REP in QMGR from an API node |
| 16 |
--exec $NDB_MGM -e "2 error 941" |
| 17 |
|
| 18 |
# Start cluster |
| 19 |
--exec $NDB_MGM -e "all start" |
| 20 |
--exec $NDB_WAITER --wait-nodes=2,4 |
| 21 |
|
| 22 |
# TODO : Check for Binlog gap? Increase in connection count in SHOW ENGINE NDB STATUS? |
| 23 |
|
| 24 |
# Restart half cluster, but without starting nodes |
| 25 |
--exec $NDB_MGM -e "2 restart -n" |
| 26 |
--exec $NDB_MGM -e "4 restart -n" |
| 27 |
--exec $NDB_WAITER --not-started --wait-nodes=2,4 |
| 28 |
|
| 29 |
# Now discard one CONNECT_REP, and cause disconnect part to fail |
| 30 |
--exec $NDB_MGM -e "2 error 941" |
| 31 |
--exec $NDB_MGM -e "2 error 13048" |
| 32 |
|
| 33 |
# Start cluster, should cause node 2 to fail |
| 34 |
--exec $NDB_MGM -e "all start" |
| 35 |
--exec $NDB_WAITER --wait-nodes=2,4 |