Skip to content

Commit

Permalink
Further debugging for test_backend_conn_ping-t
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Aug 30, 2023
1 parent 6c3a86d commit 4958ada
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/tap/tests/test_backend_conn_ping-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ int check_backend_conns(

const string mysql_query {
"SELECT count(*) FROM information_schema.processlist WHERE"
" USER=\"" + string { cl.username } + "\" and DB=\"backend_conn_ping_test\""
" USER=\"" + string { cl.username } + "\""
//" USER=\"" + string { cl.username } + "\" and DB=\"backend_conn_ping_test\""
//" COMMAND=\"Sleep\" and USER=\"" + string { cl.username } + "\" and DB=\"backend_conn_ping_test\""
};
diag("Line:%d : Running: %s", __LINE__ , mysql_query.c_str());
Expand Down Expand Up @@ -327,13 +328,18 @@ int check_backend_conns(
check_num, exp_conn_count, act_mysql_conn_count, act_proxy_free_conn_count, act_proxy_used_conn_count
);

diag("check_num = %u", check_num);
diag("exp_conn_count = %lu", exp_conn_count);
diag("act_mysql_conn_count = %lu", act_mysql_conn_count);
diag("act_proxy_free_conn_count = %lu", act_proxy_free_conn_count);
diag("act_proxy_used_conn_count = %lu", act_proxy_used_conn_count);

if (
act_mysql_conn_count >= exp_conn_count ||
(act_proxy_free_conn_count + act_proxy_used_conn_count + SESSIONS_FOR_CONNECTIONS_HANDLER) >= exp_conn_count
) {
break;
}

if (intv) {
diag("Line:%d : Sleeping %d" , __LINE__ , intv);
sleep(intv);
Expand Down

0 comments on commit 4958ada

Please sign in to comment.