| Server IP : 45.40.142.9 / Your IP : 216.73.216.250 Web Server : Apache System : Linux s45-40-142-9.secureserver.net 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : bayspec ( 506) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/mysql-test/extra/rpl_tests/ |
Upload File : |
# Following test first creates two databases (d1 and d2) and setup slave to use # two parallel workers. The test case then insert on the slave a tuple that will # block writes on d2 and generate gaps. --let $slave_stop_wait=5 --echo #### I. Initialize #### --source include/rpl_connection_slave.inc --source include/stop_slave.inc SET @save.innodb_lock_wait_timeout= @@global.innodb_lock_wait_timeout; --eval set @@global.innodb_lock_wait_timeout=$slave_stop_wait + 1000 --source include/start_slave.inc --source include/rpl_connection_master.inc CREATE DATABASE d1; CREATE DATABASE d2; CREATE TABLE d1.t (a INT PRIMARY KEY, name text) ENGINE=INNODB; CREATE TABLE d2.t (a INT PRIMARY KEY, name text) ENGINE=INNODB; --echo #### II. Prepare test scenario #### --source include/sync_slave_sql_with_master.inc BEGIN; INSERT INTO d2.t VALUES (2, 'Slave local'); # Hold T3 INSERT INTO d1.t VALUES (3, 'Slave local'); # Hold T6 --source include/rpl_connection_master.inc INSERT INTO d1.t VALUES (1, 'T1'); INSERT INTO d2.t VALUES (1, 'T2'); INSERT INTO d2.t VALUES (2, 'T3'); # This will be a gap when executed on slave INSERT INTO d2.t VALUES (3, 'T4'); # This will be a gap when executed on slave INSERT INTO d1.t VALUES (2, 'T5'); --source include/rpl_connection_slave1.inc --let $table=d1.t --let $count=2 --source include/wait_until_rows_count.inc --echo # Now d1.t has two rows and d2.t has one row. # Wait for coordinator to populate worker's queues. --let $show_statement= SHOW PROCESSLIST --let $field= State --let $condition= = 'Slave has read all relay log; waiting for the slave I/O thread to update it' --source include/wait_show_condition.inc