| 1 |
--source include/galera_cluster.inc |
| 2 |
--source include/have_innodb.inc |
| 3 |
|
| 4 |
# Save original auto_increment_offset values. |
| 5 |
--let $node_1=node_1 |
| 6 |
--let $node_2=node_2 |
| 7 |
--source include/auto_increment_offset_save.inc |
| 8 |
|
| 9 |
# |
| 10 |
# MDEV-10492: Assertion failure on shutdown when wsrep_sst_auth set in config |
| 11 |
# |
| 12 |
|
| 13 |
SELECT @@global.wsrep_sst_auth; |
| 14 |
SET @@global.wsrep_sst_auth='foo:bar'; |
| 15 |
SELECT @@global.wsrep_sst_auth; |
| 16 |
|
| 17 |
# |
| 18 |
# MDEV-24509 Warning: Memory not freed: 56 on SET @@global.wsrep_sst_auth |
| 19 |
# |
| 20 |
--connection node_2 |
| 21 |
SET @@global.wsrep_sst_auth= 'abcdefghijklmnopqrstuvwxyz'; |
| 22 |
SELECT @@global.wsrep_sst_auth; |
| 23 |
--echo Shutdown node_2 |
| 24 |
--source include/shutdown_mysqld.inc |
| 25 |
|
| 26 |
# On node_1, verify that the node has left the cluster. |
| 27 |
--connection node_1 |
| 28 |
--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; |
| 29 |
--source include/wait_condition.inc |
| 30 |
|
| 31 |
# Restart node_2 |
| 32 |
--connection node_2 |
| 33 |
--source include/start_mysqld.inc |
| 34 |
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; |
| 35 |
--source include/wait_condition.inc |
| 36 |
SELECT @@global.wsrep_sst_auth; |
| 37 |
|
| 38 |
# Restore original auto_increment_offset values. |
| 39 |
--source include/auto_increment_offset_restore.inc |