| 1 |
# Execute a DDL and verify the participant list in the servers |
| 2 |
create table t1 (a int) engine ndb; |
| 3 |
include/assert_grep.inc [Found two participants in Server 1] |
| 4 |
drop table t1; |
| 5 |
include/assert_grep.inc [Found two participants in Server 2] |
| 6 |
# Restart all nodes one by one |
| 7 |
Restart data node 1 |
| 8 |
Node 1 is being restarted |
| 9 |
|
| 10 |
# Verify the participants again to confirm that they were not lost after node 1 stopped |
| 11 |
create table t1 (a int) engine ndb; |
| 12 |
include/assert_grep.inc [Found two participants in Server 1] |
| 13 |
drop table t1; |
| 14 |
include/assert_grep.inc [Found two participants in Server 2] |
| 15 |
Database node 1 is being started. |
| 16 |
|
| 17 |
Node 1 restarted |
| 18 |
# Verify the participants again to confirm that they were not lost after node 1 restart |
| 19 |
create table t1 (a int) engine ndb; |
| 20 |
include/assert_grep.inc [Found two participants in Server 1] |
| 21 |
drop table t1; |
| 22 |
include/assert_grep.inc [Found two participants in Server 2] |
| 23 |
Restart data node 2 |
| 24 |
Node 2 is being restarted |
| 25 |
|
| 26 |
# Verify the participants again to confirm that they were not lost after node 2 stopped |
| 27 |
create table t1 (a int) engine ndb; |
| 28 |
include/assert_grep.inc [Found two participants in Server 1] |
| 29 |
drop table t1; |
| 30 |
include/assert_grep.inc [Found two participants in Server 2] |
| 31 |
Database node 2 is being started. |
| 32 |
|
| 33 |
Node 1 restarted |
| 34 |
# Verify the participants again to confirm that they were not lost after node 2 restart |
| 35 |
create table t1 (a int) engine ndb; |
| 36 |
include/assert_grep.inc [Found two participants in Server 1] |
| 37 |
drop table t1; |
| 38 |
include/assert_grep.inc [Found two participants in Server 2] |