| 1 |
# ==== Purpose ==== |
| 2 |
# |
| 3 |
# The purpose of this test is to ensure that proper error is |
| 4 |
# reported if the value of `SOURCE_COMPRESSION_ALGORITHMS` |
| 5 |
# exceeds the maximum allowed for the option of 99 characters. |
| 6 |
# |
| 7 |
# ==== Requirements ==== |
| 8 |
# |
| 9 |
# R1. While executing `CHANGE REPLICATION SOURCE TO` the value of |
| 10 |
# `SOURCE_COMPRESSION_ALGORITHMS` option value must not |
| 11 |
# exceed 99 characters. |
| 12 |
# |
| 13 |
# ==== Implementation ==== |
| 14 |
# |
| 15 |
# 1. Setup replication normally. |
| 16 |
# 2. Execute `CHANGE REPLICATION SOURCE TO` with |
| 17 |
# `SOURCE_COMPRESSION_ALGORITHMS` option value to a string |
| 18 |
# higher then 99 characters. |
| 19 |
# 3. Expect |
| 20 |
# `ER_CHANGE_REPLICATION_SOURCE_WRONG_COMPRESSION_ALGORITHM_SIZE`. |
| 21 |
# |
| 22 |
# ==== References ==== |
| 23 |
# |
| 24 |
# BUG#32008597 `ALGORITHM_NAMES.LENGTH() < ((32 * 3) + |
| 25 |
# 3)' FAILED. |
| 26 |
# |
| 27 |
|
| 28 |
--let $rpl_skip_start_slave=1 |
| 29 |
--source include/master-slave.inc |
| 30 |
--source include/have_debug.inc |
| 31 |
|
| 32 |
--source include/rpl_connection_slave.inc |
| 33 |
|
| 34 |
--echo # Success criteria: should produce an error |
| 35 |
--error ER_CHANGE_RPL_SRC_WRONG_COMPRESSION_ALGORITHM_SIZE |
| 36 |
CHANGE REPLICATION SOURCE TO |
| 37 |
SOURCE_COMPRESSION_ALGORITHMS='aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeee |
| 38 |
eeeffffffffffgggggggggghhhhhhhhhhhiiiiiiiiiijjjjjjjjjjkkkkkkkkkk'; |
| 39 |
|
| 40 |
--source include/start_slave.inc |
| 41 |
--source include/rpl_end.inc |
| 42 |
--echo # End of 8.0 tests |
| 43 |
|