⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
suite
/
binlog
/
t
/
View File Name :
binlog_gtid_automatic_using_rolled_back.test
# ==== Purpose ==== # # The fix for BUG#24398760 introduced an optimization on the assignment of # automatic GTIDs. The optimization keeps track of the last GNO assigned (let's # call it X) to a transaction and put X + 1 as the new free GNO to be assigned. # # The above mentioned will be true unless a transaction that owns a GTID with a # GNO smaller than the new free GNO to be assigned be rolled back. Then, the new # free GNO to be assigned should be the rolled back one. # # This test case creates a table (UUID:1) in a session, and starts a transaction # in another session specifying UUID:2 as GTID_NEXT. Then, on the first session, # it creates another transaction (UUID:3) and displays GTID_EXECUTED and # GTID_OWNED global variables. # # Finally, the test case rolls back the UUID:2 transaction, and creates a new # transaction with automatic GTID generation. It must be assigned with UUID:2. # # ==== Related Bugs and Worklogs ==== # # BUG#24398760 GTIDS REDUCE PERFORMANCE ON WORKLOADS WITH MANY SMALL # TRANSACTIONS # # This test case is binary log format agnostic --source include/have_binlog_format_row.inc --source include/have_gtid.inc RESET MASTER; --connect (conn1,127.0.0.1,root,,test,$MASTER_MYPORT,) --let $rpl_connection_name= conn1 --source include/rpl_connection.inc --let $uuid= `SELECT @@GLOBAL.SERVER_UUID` --let $session_id= `SELECT CONCAT("#", CONNECTION_ID())` --replace_result $uuid MASTER_UUID eval SET @@SESSION.GTID_NEXT = '$uuid:2'; BEGIN; --let $rpl_connection_name= default --source include/rpl_connection.inc CREATE TABLE t1 (a INT); #uuid:1 INSERT INTO t1 VALUES (1); #uuid:3 --replace_result $uuid MASTER_UUID $session_id \#SESSION_ID SELECT @@GLOBAL.GTID_EXECUTED, @@GLOBAL.GTID_OWNED; --let $rpl_connection_name= conn1 --source include/rpl_connection.inc ROLLBACK; --let $rpl_connection_name= default --source include/rpl_connection.inc INSERT INTO t1 VALUES (1); #uuid:2 --replace_result $uuid MASTER_UUID SELECT @@GLOBAL.GTID_EXECUTED, @@GLOBAL.GTID_OWNED; # Cleanup --disconnect conn1 DROP TABLE t1;