From f79e8b108ccb477a0f92900781b08426f838c7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 22 May 2019 20:39:01 +0300 Subject: [PATCH] Log end of bug601 verbosely The test appears to fail to connect to MaxScale due to unavailability of connections. Theoretically, the improvement in accept speed due to SO_REUSEPORT additions could explain the faster exhaustion of available sockets. --- maxscale-system-test/bug601.cpp | 3 +++ maxscale-system-test/maxscales.cpp | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/maxscale-system-test/bug601.cpp b/maxscale-system-test/bug601.cpp index 57a0f44c7..a2fe6b048 100644 --- a/maxscale-system-test/bug601.cpp +++ b/maxscale-system-test/bug601.cpp @@ -120,7 +120,10 @@ int main(int argc, char* argv[]) Test->tprintf("Dropping user", Test->maxscales->user_name); Test->try_query(Test->maxscales->conn_rwsplit[0], (char*) "DROP USER user@'%%';"); + + Test->maxscales->verbose = true; Test->check_maxscale_alive(0); + Test->maxscales->verbose = false; int rval = Test->global_result; delete Test; diff --git a/maxscale-system-test/maxscales.cpp b/maxscale-system-test/maxscales.cpp index 127a34c00..092187c5e 100644 --- a/maxscale-system-test/maxscales.cpp +++ b/maxscale-system-test/maxscales.cpp @@ -99,7 +99,7 @@ int Maxscales::connect_rwsplit(int m, const std::string& db) { if (verbose) { - printf("Failed to connect to readwritesplit: %d, %s", my_errno, mysql_error(conn_rwsplit[m])); + printf("Failed to connect to readwritesplit: %d, %s\n", my_errno, mysql_error(conn_rwsplit[m])); } rc = my_errno; } @@ -136,7 +136,7 @@ int Maxscales::connect_readconn_master(int m, const std::string& db) { if (verbose) { - printf("Failed to connect to readwritesplit: %d, %s", my_errno, mysql_error(conn_master[m])); + printf("Failed to connect to readwritesplit: %d, %s\n", my_errno, mysql_error(conn_master[m])); } rc = my_errno; } @@ -173,7 +173,7 @@ int Maxscales::connect_readconn_slave(int m, const std::string& db) { if (verbose) { - printf("Failed to connect to readwritesplit: %d, %s", my_errno, mysql_error(conn_slave[m])); + printf("Failed to connect to readwritesplit: %d, %s\n", my_errno, mysql_error(conn_slave[m])); } rc = my_errno; }