Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/server/mysql/mysql-test/t/ |
Upload File : |
# This test makes no sense with the embedded server --source include/not_embedded.inc --source include/have_debug_sync.inc # Save the initial number of concurrent sessions --source include/count_sessions.inc --echo --echo # -- Bug#20201006: Spamming show processlist prevents old connection --echo # -- threads from cleaning up. --enable_connect_log SET @saved_max_connections = @@global.max_connections; SET GLOBAL max_connections = 2; --echo --echo # -- Check that we allow only max_connections + 1 connections here --connect (con_1, localhost, root) --connect (con_2, localhost, root) --replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK --error ER_CON_COUNT_ERROR --connect (con_3, localhost, root) --echo --echo # -- Ensure we have max_connections + 1 connections. SELECT count(*)= @@global.max_connections + 1 FROM information_schema.processlist; --echo --echo # -- Take LOCK_thd_remove and close one connection then --echo # attempt new one [should fail]... SET DEBUG_SYNC='inside_do_for_all_thd_copy SIGNAL disconnect_connection WAIT_FOR continue'; --send SELECT user FROM INFORMATION_SCHEMA.PROCESSLIST GROUP BY user; --connection default SET DEBUG_SYNC='now WAIT_FOR disconnect_connection'; --disconnect con_1 --replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK --error ER_CON_COUNT_ERROR --connect (con_3, localhost, root) --echo --echo # -- Release the lock. Now new connection should go through SET DEBUG_SYNC='now SIGNAL continue'; --connection con_2 reap; SET DEBUG_SYNC='RESET'; --echo --echo # -- Waiting for connection to close... let $count_sessions= 2; --source include/wait_until_count_sessions.inc --connect (con_3, localhost, root) --echo --echo # -- Closing connections... --disconnect con_3 --disconnect con_2 --source include/wait_until_disconnected.inc --connection default --echo --echo # -- Resetting variables... SET GLOBAL max_connections= @saved_max_connections; --disable_connect_log --echo --echo # -- End of Bug#20201006. --echo # Wait till all disconnects are completed let $count_sessions= 1; --source include/wait_until_count_sessions.inc