polardbxengine/mysql-test/suite/rpl/r/rpl_sql_delay_old.result

84 lines
4.3 KiB
Plaintext

include/master-slave.inc
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
[connection slave]
CHANGE MASTER TO MASTER_DELAY= 7;
include/start_slave.inc
include/assert.inc [Assert that the desired delay from performance_schema is same as set in the Change master to command.]
include/assert.inc [Assert that the sql_delay in show slave status is same as set in the Change master to command.]
# Adding debug point 'sql_delay_without_timestamps' to @@GLOBAL.debug
[connection master]
CREATE TABLE t1 (a INT);
[connection slave]
include/assert.inc [Assert that the REMAINING_DELAY from performance_schema is same as SQL_Remaining_Delay in the output of show slave status.]
[connection master]
include/sync_slave_sql_with_master.inc
[connection master]
[connection slave]
include/assert.inc [In the old infrastructure, the execution time of the transaction in the slave must be at least the delay]
include/assert.inc [Status should not be 'Waiting until MASTER_DELAY seconds after master executed event']
[connection master]
INSERT INTO t1 VALUES (1);
[connection slave]
include/assert.inc [Assert that the REMAINING_DELAY from performance_schema is same as SQL_Remaining_Delay in the output of show slave status.]
[connection master]
include/sync_slave_sql_with_master.inc
[connection master]
[connection slave]
include/assert.inc [In the old infrastructure, the execution time of the transaction in the slave must be at least the delay]
include/assert.inc [Status should not be 'Waiting until MASTER_DELAY seconds after master executed event']
[connection master]
UPDATE t1 SET a=2;
[connection slave]
include/assert.inc [Assert that the REMAINING_DELAY from performance_schema is same as SQL_Remaining_Delay in the output of show slave status.]
[connection master]
include/sync_slave_sql_with_master.inc
[connection master]
[connection slave]
include/assert.inc [In the old infrastructure, the execution time of the transaction in the slave must be at least the delay]
include/assert.inc [Status should not be 'Waiting until MASTER_DELAY seconds after master executed event']
[connection master]
DELETE FROM t1 WHERE a=2;
[connection slave]
include/assert.inc [Assert that the REMAINING_DELAY from performance_schema is same as SQL_Remaining_Delay in the output of show slave status.]
[connection master]
include/sync_slave_sql_with_master.inc
[connection master]
[connection slave]
include/assert.inc [In the old infrastructure, the execution time of the transaction in the slave must be at least the delay]
include/assert.inc [Status should not be 'Waiting until MASTER_DELAY seconds after master executed event']
[connection master]
START TRANSACTION;
INSERT INTO t1 VALUES (1);
INSERT INTO t1 VALUES (2);
INSERT INTO t1 VALUES (3);
COMMIT;
[connection slave]
include/assert.inc [Assert that the REMAINING_DELAY from performance_schema is same as SQL_Remaining_Delay in the output of show slave status.]
[connection master]
include/sync_slave_sql_with_master.inc
[connection master]
[connection slave]
include/assert.inc [In the old infrastructure, the execution time of the transaction in the slave must be at least the delay]
include/assert.inc [Status should not be 'Waiting until MASTER_DELAY seconds after master executed event']
[connection master]
DROP TABLE t1;
[connection slave]
include/assert.inc [Assert that the REMAINING_DELAY from performance_schema is same as SQL_Remaining_Delay in the output of show slave status.]
[connection master]
include/sync_slave_sql_with_master.inc
[connection master]
[connection slave]
include/assert.inc [In the old infrastructure, the execution time of the transaction in the slave must be at least the delay]
include/assert.inc [Status should not be 'Waiting until MASTER_DELAY seconds after master executed event']
[connection master]
[connection slave]
# Removing debug point 'sql_delay_without_timestamps' from @@GLOBAL.debug
include/stop_slave_sql.inc
CHANGE MASTER TO MASTER_DELAY= 0;
include/start_slave_sql.inc
[connection master]
include/rpl_end.inc