Server IP : 104.21.38.3 / Your IP : 108.162.227.120 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 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 : ON Directory : /www/server/mysql/src/mysql-test/suite/innodb/r/ |
Upload File : |
# # Bug #21025880 DUPLICATE UK VALUES IN READ-COMMITTED(AGAIN) # CREATE TABLE t1 ( a INT NOT NULL, b INT NOT NULL, PRIMARY KEY(b), UNIQUE KEY(a)) ENGINE=INNODB; SET @old_innodb_stats_auto_recalc = @@innodb_stats_auto_recalc; SET GLOBAL innodb_stats_auto_recalc = OFF; SET GLOBAL innodb_purge_stop_now = ON; SET @old_tx_isolation = @@tx_isolation; Warnings: Warning 1287 '@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transaction_isolation' instead SET GLOBAL tx_isolation = 'READ-COMMITTED'; Warnings: Warning 1287 '@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transaction_isolation' instead SET @old_innodb_lock_wait_timeout = @@innodb_lock_wait_timeout; SET GLOBAL innodb_lock_wait_timeout = 1; INSERT INTO t1 VALUES (1,1),(2,2); DELETE FROM t1; SET debug_sync = 'row_ins_sec_index_entry_dup_locks_created SIGNAL con1_locks_done WAIT_FOR con1_go'; SET debug_sync = 'ha_commit_trans_after_acquire_commit_lock SIGNAL con1_insert_done WAIT_FOR con1_finish'; REPLACE INTO t1 VALUES (1,2); SET debug_sync = 'now WAIT_FOR con1_locks_done'; SET debug_sync = 'lock_wait_suspend_thread_enter SIGNAL con2_blocked WAIT_FOR con2_go'; SET debug_sync = 'ha_commit_trans_after_acquire_commit_lock SIGNAL con2_insert_done WAIT_FOR con2_finish'; SET debug_sync = 'ib_after_row_insert SIGNAL con2_insert_done'; REPLACE INTO t1 VALUES (1,3); SET debug_sync = 'now WAIT_FOR con2_blocked'; SET GLOBAL innodb_purge_run_now=ON; SET debug_sync = 'now SIGNAL con2_go WAIT_FOR con2_insert_done'; SET debug_sync = 'now SIGNAL con1_go WAIT_FOR con1_insert_done'; SET debug_sync = 'now SIGNAL con1_finish'; SET debug_sync = 'now SIGNAL con2_finish'; SELECT * FROM t1; a b 1 2 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK DROP TABLE t1; SET GLOBAL innodb_stats_auto_recalc = @old_innodb_stats_auto_recalc; SET GLOBAL tx_isolation = @old_tx_isolation; Warnings: Warning 1287 '@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transaction_isolation' instead SET GLOBAL innodb_lock_wait_timeout = @old_innodb_lock_wait_timeout; SET DEBUG_SYNC= 'RESET'; CREATE TABLE t1 ( a INT NOT NULL, b INT NOT NULL, PRIMARY KEY(b), UNIQUE KEY(a)) ENGINE=INNODB; SET @old_innodb_stats_auto_recalc = @@innodb_stats_auto_recalc; SET GLOBAL innodb_stats_auto_recalc = OFF; SET GLOBAL innodb_purge_stop_now = ON; SET @old_tx_isolation = @@tx_isolation; Warnings: Warning 1287 '@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transaction_isolation' instead SET GLOBAL tx_isolation = 'READ-COMMITTED'; Warnings: Warning 1287 '@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transaction_isolation' instead SET @old_innodb_lock_wait_timeout = @@innodb_lock_wait_timeout; SET GLOBAL innodb_lock_wait_timeout = 1; INSERT INTO t1 VALUES (1,1),(2,2); DELETE FROM t1; SET debug_sync = 'row_ins_sec_index_entry_dup_locks_created SIGNAL con1_locks_done WAIT_FOR con1_go'; SET debug_sync = 'ha_commit_trans_after_acquire_commit_lock SIGNAL con1_insert_done WAIT_FOR con1_finish'; INSERT INTO t1 values (1,2) ON DUPLICATE KEY UPDATE a=2; SET debug_sync = 'now WAIT_FOR con1_locks_done'; SET debug_sync = 'lock_wait_suspend_thread_enter SIGNAL con2_blocked WAIT_FOR con2_go'; SET debug_sync = 'ha_commit_trans_after_acquire_commit_lock SIGNAL con2_insert_done WAIT_FOR con2_finish'; SET debug_sync = 'ib_after_row_insert SIGNAL con2_insert_done'; REPLACE INTO t1 VALUES (1,3); SET debug_sync = 'now WAIT_FOR con2_blocked'; SET GLOBAL innodb_purge_run_now=ON; SET debug_sync = 'now SIGNAL con2_go WAIT_FOR con2_insert_done'; SET debug_sync = 'now SIGNAL con1_go WAIT_FOR con1_insert_done'; SET debug_sync = 'now SIGNAL con1_finish'; SET debug_sync = 'now SIGNAL con2_finish'; SELECT * FROM t1; a b 1 2 CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK DROP TABLE t1; SET GLOBAL innodb_stats_auto_recalc = @old_innodb_stats_auto_recalc; SET GLOBAL tx_isolation = @old_tx_isolation; Warnings: Warning 1287 '@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transaction_isolation' instead SET GLOBAL innodb_lock_wait_timeout = @old_innodb_lock_wait_timeout; SET DEBUG_SYNC= 'RESET';