Details
-
Bug
-
Status: In Review (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.11, 11.4, 12.1(EOL), 11.8
-
None
Description
Test failure:
CURRENT_TEST: main.mdev375
|
mysqltest: At line 24: query 'connect con2,localhost,root,,' failed: ER_CON_COUNT_ERROR (1040): Too many connections
|
|
|
The result from queries just before the failure was:
|
set @save_log_warnings=@@log_warnings, @save_max_connections=@@max_connections;
|
SET GLOBAL log_warnings=4;
|
SET GLOBAL max_connections=10;
|
connect tmp_con1,localhost,root,,;
|
connect tmp_con2,localhost,root,,;
|
connect tmp_con3,localhost,root,,;
|
connect tmp_con4,localhost,root,,;
|
connect tmp_con5,localhost,root,,;
|
connect tmp_con6,localhost,root,,;
|
connect tmp_con7,localhost,root,,;
|
connect tmp_con8,localhost,root,,;
|
connect con1,localhost,root,,;
|
SELECT 1;
|
1
|
1
|
Reproducible with:
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc
|
index c279f2663c8..c227fee943e 100644
|
--- a/sql/sql_connect.cc
|
+++ b/sql/sql_connect.cc
|
@@ -1483,6 +1483,7 @@ void do_handle_one_connection(CONNECT *connect, bool put_in_cache)
|
if (thd->userstat_running)
|
update_global_user_stats(thd, create_user, time(NULL));
|
|
|
+ sleep(1);
|
unlink_thd(thd);
|
if (IF_WSREP(thd->wsrep_applier, false) || !put_in_cache ||
|
!(connect= thread_cache.park()))
|
|
Attachments
Issue Links
- is part of
-
MDEV-36647 No red leaves in the forest
-
- Open
-