| 1 |
# |
| 2 |
# Test voting while an SR transaction is in progress |
| 3 |
# |
| 4 |
|
| 5 |
--source include/galera_cluster.inc |
| 6 |
--source include/big_test.inc |
| 7 |
|
| 8 |
--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3 |
| 9 |
|
| 10 |
# Save original auto_increment_offset values. |
| 11 |
--let $node_1=node_1 |
| 12 |
--let $node_2=node_2 |
| 13 |
--let $node_3=node_3 |
| 14 |
--source ../galera/include/auto_increment_offset_save.inc |
| 15 |
|
| 16 |
--echo Inconsistency on the first fragment |
| 17 |
--let $inconsistent_fragment=1 |
| 18 |
--source galera_vote_sr.inc |
| 19 |
|
| 20 |
--echo Inconsistency on a middle fragment |
| 21 |
--let $inconsistent_fragment=3 |
| 22 |
--source galera_vote_sr.inc |
| 23 |
|
| 24 |
--echo Inconsistency on the commit fragment |
| 25 |
--let $inconsistent_fragment=5 |
| 26 |
--source galera_vote_sr.inc |
| 27 |
|
| 28 |
--connection node_2 |
| 29 |
CALL mtr.add_suppression("Slave SQL: Could not execute Write_rows event on table test.t1; Duplicate entry '1' for key 'PRIMARY'"); |
| 30 |
CALL mtr.add_suppression("Slave SQL: Could not execute Write_rows event on table test.t1; Duplicate entry '3' for key 'PRIMARY'"); |
| 31 |
CALL mtr.add_suppression("Slave SQL: Could not execute Write_rows event on table test.t1; Duplicate entry '5' for key 'PRIMARY'"); |
| 32 |
CALL mtr.add_suppression("Write_rows_v1 apply failed"); |
| 33 |
CALL mtr.add_suppression("Inconsistent by consensus"); |
| 34 |
CALL mtr.add_suppression("WSREP: Failed to apply write set: "); |
| 35 |
#CALL mtr.add_suppression("no THD for trx"); |
| 36 |
CALL mtr.add_suppression("WSREP: Failed to report last committed"); |
| 37 |
|
| 38 |
# Restore original auto_increment_offset values. |
| 39 |
--source ../galera/include/auto_increment_offset_restore.inc |