From 42efe0549a67fdfa66ed298df80f6651bbe08cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 25 Aug 2017 12:19:27 +0300 Subject: [PATCH] Add error messages and increse to max_allowed_packet in mxs1110_16mb The test now logs why it fails to perform some action in addition to setting max_allowed_packet to both master-slave and Galera clusters. --- maxscale-system-test/blob_test.cpp | 4 ++-- maxscale-system-test/mxs1110_16mb.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/maxscale-system-test/blob_test.cpp b/maxscale-system-test/blob_test.cpp index 41358bafb..c1af427ca 100644 --- a/maxscale-system-test/blob_test.cpp +++ b/maxscale-system-test/blob_test.cpp @@ -148,7 +148,7 @@ int check_longblob_data(TestConnections* Test, MYSQL * conn, unsigned long chunk */ if (mysql_stmt_bind_result(stmt, result) != 0) { - printf("Could not bind results\n"); + printf("Could not bind results: %s\n", mysql_stmt_error(stmt)); return 1; } @@ -159,7 +159,7 @@ int check_longblob_data(TestConnections* Test, MYSQL * conn, unsigned long chunk if (mysql_stmt_store_result(stmt) != 0) { - printf("Could not buffer result set\n"); + printf("Could not buffer result set: %s\n", mysql_stmt_error(stmt)); return 1; } diff --git a/maxscale-system-test/mxs1110_16mb.cpp b/maxscale-system-test/mxs1110_16mb.cpp index 7788b7116..a0b014075 100644 --- a/maxscale-system-test/mxs1110_16mb.cpp +++ b/maxscale-system-test/mxs1110_16mb.cpp @@ -26,6 +26,7 @@ int main(int argc, char *argv[]) Test->start_maxscale(); Test->repl->execute_query_all_nodes( (char *) "set global max_allowed_packet=100000000"); + Test->galera->execute_query_all_nodes( (char *) "set global max_allowed_packet=100000000"); Test->connect_maxscale(); Test->repl->connect();