| 1 |
# |
| 2 |
# Test voting on identical DDL errors (error messages should match) |
| 3 |
# |
| 4 |
|
| 5 |
--source include/galera_cluster.inc |
| 6 |
--source include/have_binlog_format_row.inc |
| 7 |
|
| 8 |
# |
| 9 |
# 1. Ignore all DDL errors (avoids voting) |
| 10 |
# |
| 11 |
--connection node_1 |
| 12 |
--let $wsrep_ignore_apply_errors_saved1 = `SELECT @@global.wsrep_ignore_apply_errors` |
| 13 |
SET @@global.wsrep_ignore_apply_errors = 7; |
| 14 |
--connection node_2 |
| 15 |
--let $wsrep_ignore_apply_errors_saved2 = `SELECT @@global.wsrep_ignore_apply_errors` |
| 16 |
SET @@global.wsrep_ignore_apply_errors = 7; |
| 17 |
|
| 18 |
--source galera_vote_ddl.inc |
| 19 |
|
| 20 |
# |
| 21 |
# 2. Don't ignore any errors (forces voting) |
| 22 |
# |
| 23 |
--connection node_1 |
| 24 |
SET @@global.wsrep_ignore_apply_errors = 0; |
| 25 |
--connection node_2 |
| 26 |
SET @@global.wsrep_ignore_apply_errors = 0; |
| 27 |
|
| 28 |
--source galera_vote_ddl.inc |
| 29 |
|
| 30 |
--connection node_1 |
| 31 |
--eval SET @@global.wsrep_ignore_apply_errors = $wsrep_ignore_apply_errors_saved1 |
| 32 |
|
| 33 |
--connection node_2 |
| 34 |
--eval SET @@global.wsrep_ignore_apply_errors = $wsrep_ignore_apply_errors_saved2 |