Server IP : 104.21.38.3 / Your IP : 108.162.226.208 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/mysql-test/suite/binlog/t/ |
Upload File : |
# ==== Purpose ==== # # Test timestamps generated by binlog-transaction-dependency-tracking # mode WRITESET when inserting/deleting/updating a single row but using # case and accent insensitive collations. # # As all transactions are touching a single row, the timestamps are # expected to always increase (every transaction should depend on the # previous one). # # ==== References ==== # # BUG#26277771: BAD WRITE SET TRACKING WITH UNIQUE KEY ON A DELETE FOLLOWED BY AN INSERT. # --source include/have_binlog_format_row.inc # # Initialization # SET @save_binlog_transaction_dependency_tracking = @@GLOBAL.binlog_transaction_dependency_tracking; SET @save_transaction_write_set_extraction = @@GLOBAL.transaction_write_set_extraction; SET @@GLOBAL.transaction_write_set_extraction = XXHASH64; SET @@SESSION.transaction_write_set_extraction = XXHASH64; SET @@GLOBAL.binlog_transaction_dependency_tracking = WRITESET; # # Test # # Workload SET NAMES 'utf8' COLLATE 'utf8_general_ci'; RESET MASTER; CREATE TABLE t1 ( id INT NOT NULL AUTO_INCREMENT, u_id INT NOT NULL, u_str VARCHAR(32) NOT NULL, PRIMARY KEY (id), UNIQUE KEY (u_id, u_str) ) ENGINE=InnoDB; INSERT INTO t1 (u_id, u_str) VALUES (1, 'a'); # Sanity check --error ER_DUP_ENTRY INSERT INTO t1 (u_id, u_str) VALUES (1, 'A'); --error ER_DUP_ENTRY INSERT INTO t1 (u_id, u_str) VALUES (1, 'ã'); --error ER_DUP_ENTRY INSERT INTO t1 (u_id, u_str) VALUES (1, 'Ã'); --error ER_DUP_ENTRY INSERT INTO t1 (u_id, u_str) VALUES (1, 'á'); # Test DELETE FROM t1 WHERE u_id = 1 AND u_str = 'A'; INSERT INTO t1 (u_id, u_str) VALUES (1, 'ã'); DELETE FROM t1 WHERE u_id = 1 AND u_str = 'Ã'; INSERT INTO t1 (u_id, u_str) VALUES (1, 'á'); DROP TABLE t1; --let $binlog_file= query_get_value(SHOW MASTER STATUS, File, 1) --echo Processing binlog $binlog_file FLUSH LOGS; --let $source_file= $server_1_datadir/$binlog_file --let $logical_timestamps=0 1;1 2;2 3;3 4;4 5;5 6;6 7 --source include/assert_logical_timestamps.inc # # Cleanup # SET @@GLOBAL.binlog_transaction_dependency_tracking = COMMIT_ORDER; SET @@GLOBAL.transaction_write_set_extraction= @save_transaction_write_set_extraction; SET @@GLOBAL.binlog_transaction_dependency_tracking= @save_binlog_transaction_dependency_tracking;