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 : |
--source include/have_partition.inc --source include/have_debug.inc # Save the initial number of concurrent sessions. --source include/count_sessions.inc --echo # --echo # Bug #43867 ALTER TABLE on a partitioned table --echo # causes unnecessary deadlocks --echo # CREATE TABLE t1 (a int) PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (1), PARTITION p1 VALUES LESS THAN (2)); INSERT INTO t1 VALUES (0),(1); connect(con1,localhost,root); --echo # Connection 2 connection con1; BEGIN; SELECT * FROM t1; --echo # Connection 1 connection default; --error ER_DROP_PARTITION_NON_EXISTENT ALTER TABLE t1 DROP PARTITION p3; --echo # Connection 2 connection con1; --echo # This failed with deadlock and should not do so. SELECT * FROM t1; --echo # Connection 1 connection default; disconnect con1; DROP TABLE t1; --echo # --echo # Bug #46654 False deadlock on concurrent DML/DDL --echo # with partitions, inconsistent behavior --echo # --disable_warnings DROP TABLE IF EXISTS tbl_with_partitions; --enable_warnings CREATE TABLE tbl_with_partitions ( i INT ) PARTITION BY HASH(i); INSERT INTO tbl_with_partitions VALUES (1); connect(con2,localhost,root); connect(con3,localhost,root); --echo # Connection 3 connection con3; LOCK TABLE tbl_with_partitions READ; --echo # Connection 1 --echo # Access table with disabled autocommit connection default; SET AUTOCOMMIT = 0; SELECT * FROM tbl_with_partitions; --echo # Connection 2 --echo # Alter table, abort after prepare connection con2; set session debug="+d,abort_copy_table"; --error ER_LOCK_WAIT_TIMEOUT ALTER TABLE tbl_with_partitions ADD COLUMN f INT, ALGORITHM=COPY; --echo # Connection 1 --echo # Try accessing the table after Alter aborted. --echo # This used to give ER_LOCK_DEADLOCK. connection default; SELECT * FROM tbl_with_partitions; --echo # Connection 3 connection con3; UNLOCK TABLES; --echo # Connection 1 --echo # Cleanup connection default; disconnect con2; disconnect con3; DROP TABLE tbl_with_partitions; # Check that all connections opened by test cases in this file are really # gone so execution of other tests won't be affected by their presence. --source include/wait_until_count_sessions.inc