MXS-359: Add test with master_failure_mode=error_on_write

Testing of routing behavior with master_failure_mode=error_on_write and
allow_master_changes=true. By sending an error instead of closing the
connection when the master fails, the connection can resume execution if a
new master becomes available.
This commit is contained in:
Markus Mäkelä
2018-03-12 14:29:11 +02:00
parent 62d4fa822d
commit 6a49f6ff0d
3 changed files with 209 additions and 0 deletions

View File

@ -417,6 +417,9 @@ add_test_executable(mxs359_master_switch.cpp mxs359_master_switch mxs359_master_
# Test read-only connections with master replacement
add_test_executable(mxs359_read_only.cpp mxs359_read_only mxs359_read_only LABELS REPL_BACKEND)
# Test master_failure_mode=error_on_write and master replacement
add_test_executable(mxs359_error_on_write.cpp mxs359_error_on_write mxs359_error_on_write LABELS REPL_BACKEND)
# Binary protocol prepared statement tests
add_test_executable(binary_ps.cpp binary_ps replication LABELS readwritesplit LIGHT REPL_BACKEND)
add_test_executable(binary_ps_cursor.cpp binary_ps_cursor replication LABELS readwritesplit LIGHT REPL_BACKEND)