Current Path : /home/usr.opt/mysql57/mysql-test/suite/rpl/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/rpl/r/rpl_perfschema_applier_status_by_coordinator.result |
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] call mtr.add_suppression("Error 'Table 'test.t' doesn't exist' on query."); call mtr.add_suppression("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state.*"); include/assert.inc [On master, the table should return an empty set.] include/assert.inc [On master, the table should return an empty set.] include/wait_for_slave_param.inc [Slave_SQL_Running_State] # Testing on fresh slave. include/assert.inc [thread_name should should indicate sql thread.] include/assert.inc [SSS shows Slave_IO_Running as "Yes". So, Service_State from this PS table should be "ON".] include/assert.inc [Value returned by SSS and PS table for Last_Error_Number should be same.] include/assert.inc [Value returned by SSS and PS table for Last_Error_Message should be same.] include/assert.inc [Value returned by SSS and PS table for Last_Error_Timestamp should be 0000-00-00 00:00:00.] include/assert.inc [SSS shows Slave_SQL_Running as "Yes". So, Service_State from this PS table should be "ON".] # Cause an error in the SQL thread and check for the correctness of # values in error number, message and timestamp fields. use test; create table t(a int primary key); include/sync_slave_sql_with_master.inc drop table t; insert into t values(1); include/wait_for_slave_sql_error.inc [errno=1146] # Extract the error related fields from SSS and PS table and compare # them for correctness. include/assert.inc [Value returned by SSS and PS table for Last_Error_Number should be same.] Value returned by SSS and PS table for Last_Error_Message is same. include/assert.inc [Value returned by SSS and PS table for Last_Error_Timestamp should be same.] # Verify that the error fields are preserved after STOP SLAVE, thread_id # changes to NULL and service_state changes to "Off". # 1. Verify that thread_id changes to NULL and service_state to "off" on # STOP SLAVE. include/assert.inc [After STOP SLAVE, thread_id should be NULL] include/assert.inc [SSS shows Slave_SQL_Running as "No". So, Service_State from this PS table should be "OFF".] # 2. Extract the error related fields from SSS and PS table and compare # them. These fields should preserve their values. include/assert.inc [Value returned by SSS and PS table for Last_Error_Number should be same.] Value returned by SSS and PS table for Last_Error_Message is same. include/assert.inc [Value returned by SSS and PS table for Last_Error_Timestamp should be same.] include/stop_slave.inc drop table t; reset master; reset slave; reset master; # Restarting servers and setting up MTS now. Since, SQL thread and # coordinator are the same and follow same code path, we can skip # testing for coordinator thread in all scenarios. Testing for one # scenario is enough. include/rpl_restart_server.inc [server_number=1] include/rpl_restart_server.inc [server_number=2] change master to master_host='127.0.0.1', master_port=MASTER_MYPORT, master_user='root'; 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. SET @save.slave_parallel_workers=@@global.slave_parallel_workers; SET @@global.slave_parallel_workers=1; set @save.slave_transaction_retries= @@global.slave_transaction_retries; include/start_slave.inc include/wait_for_slave_param.inc [Slave_SQL_Running_State] include/assert.inc [thread_name should should indicate sql thread.] include/assert.inc [SSS shows Slave_SQL_Running as "Yes". So, Service_State from this PS table should be "ON".] include/assert.inc [Value returned by SSS and PS table for Last_Error_Number should be same.] include/assert.inc [Value returned by SSS and PS table for Last_Error_Message should be same.] include/assert.inc [Value returned by SSS and PS table for Last_Error_Timestamp should be 0000-00-00 00:00:00.] # Cleanup. include/stop_slave.inc set @@global.slave_parallel_workers= @save.slave_parallel_workers; set @@global.slave_transaction_retries= @save.slave_transaction_retries; include/start_slave.inc include/rpl_end.inc