| 1 |
# |
| 2 |
# Test repl.max_ws_size . A transaction larger than this size can not commit. |
| 3 |
# |
| 4 |
|
| 5 |
--source include/galera_cluster.inc |
| 6 |
--source include/have_innodb.inc |
| 7 |
|
| 8 |
--connection node_1 |
| 9 |
--let $wsrep_provider_options_orig = `SELECT @@wsrep_provider_options` |
| 10 |
|
| 11 |
CREATE TABLE t1 (f1 VARCHAR(512)) ENGINE=InnoDB; |
| 12 |
|
| 13 |
SET GLOBAL wsrep_provider_options = 'repl.max_ws_size=512'; |
| 14 |
|
| 15 |
--error ER_UNKNOWN_ERROR |
| 16 |
INSERT INTO t1 VALUES (REPEAT('a', 512)); |
| 17 |
|
| 18 |
SELECT COUNT(*) = 0 FROM t1; |
| 19 |
|
| 20 |
--disable_query_log |
| 21 |
--eval SET GLOBAL wsrep_provider_options = '$wsrep_provider_options_orig'; |
| 22 |
--enable_query_log |
| 23 |
|
| 24 |
DROP TABLE t1; |
| 25 |
|
| 26 |
CALL mtr.add_suppression("Maximum writeset size exceeded by"); |
| 27 |
CALL mtr.add_suppression("transaction size limit"); |
| 28 |
CALL mtr.add_suppression("transaction size exceeded"); |
| 29 |
CALL mtr.add_suppression("rbr write fail"); |