MXS-1773: Add test case
Added a test case that reproduces the problem and verifies that it is fixed.
This commit is contained in:
parent
8e2208b957
commit
c0a3e6ba37
@ -629,6 +629,10 @@ add_test_executable(mxs1743_rconn_bitmask.cpp mxs1743_rconn_bitmask mxs1743_rcon
|
||||
# https://jira.mariadb.org/browse/MXS-1751
|
||||
add_test_executable(mxs1751_available_when_donor_crash.cpp mxs1751_available_when_donor_crash mxs1751_available_when_donor_crash LABELS GALERA_BACKEND)
|
||||
|
||||
# MXS-1773: Failing LOAD DATA LOCAL INFILE confuses readwritesplit
|
||||
# https://jira.mariadb.org/browse/MXS-1773
|
||||
add_test_executable(mxs1773_failing_ldli.cpp mxs1773_failing_ldli replication LABELS readwritesplit REPL_BACKEND)
|
||||
|
||||
# 'namedserverfilter' test
|
||||
add_test_executable(namedserverfilter.cpp namedserverfilter namedserverfilter LABELS namedserverfilter LIGHT REPL_BACKEND)
|
||||
|
||||
|
22
maxscale-system-test/mxs1773_failing_ldli.cpp
Normal file
22
maxscale-system-test/mxs1773_failing_ldli.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
/**
|
||||
* MXS-1773: Failing LOAD DATA LOCAL INFILE confuses readwritesplit
|
||||
*
|
||||
* https://jira.mariadb.org/browse/MXS-1773
|
||||
*/
|
||||
#include "testconnections.h"
|
||||
#include <functional>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
TestConnections test(argc, argv);
|
||||
|
||||
test.maxscales->connect();
|
||||
auto q = std::bind(execute_query, test.maxscales->conn_rwsplit[0], std::placeholders::_1);
|
||||
q("LOAD DATA LOCAL INFILE '/tmp/this-file-does-not-exist.txt' INTO TABLE this_table_does_not_exist");
|
||||
q("SELECT 1");
|
||||
q("SELECT 2");
|
||||
q("SELECT 3");
|
||||
test.maxscales->disconnect();
|
||||
|
||||
return test.global_result;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user