config root man

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
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/rpl/r/rpl_perfschema_applier_status_by_worker.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.");
call mtr.add_suppression("Request to stop slave SQL Thread received while applying a group that has non-transactional changes;");
include/assert.inc [On master, the table should return an empty set.]

# Setup MTS and perform testing on a fresh slave.

include/sync_slave_sql_with_master.inc
include/stop_slave.inc
SET @save_slave_parallel_workers=@@global.slave_parallel_workers;
SET @@global.slave_parallel_workers=0;
set @save_slave_transaction_retries= @@global.slave_transaction_retries;
include/start_slave.inc
include/assert.inc [In non-MTS mode(SQL thread), the table should return one row as Single SQL applier thread will be part of replication_applier_status_by_worker table.]
include/assert.inc [In non-MTS mode(SQL thread), the table should return empty result set]
include/stop_slave.inc
SET @@global.slave_parallel_workers=1;
set @save_slave_transaction_retries= @@global.slave_transaction_retries;
include/start_slave.inc
include/assert.inc [Worker_Id should be 1]
include/assert.inc [thread_name should should indicate worker thread.]
include/assert.inc [Service_State should be "ON" on a fresh slave server.]
include/assert.inc [Last_Seen_Transaction should show "" if no transaction applierd]
CREATE TABLE t1 (a INT);
DROP TABLE t1;
include/assert.inc [Last_Seen_Transaction should show "ANONYMOUS" if last transaction was anonymous.]
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 both be empty.]
include/assert.inc [Value returned by PS table for Last_Error_Timestamp should be 0000-00-00 00:00:00.]

# Introduce an error in the worker thread and check for the correctness
# of error number, message and timestamp fields.

use test;
create table t(a int primary key);
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.]
Last_Error_Message
Worker 1 failed executing transaction 'ANONYMOUS' at master log FILENAME, end_log_pos POSITION; Error 'Table 'test.t' doesn't exist' on query. Default database: 'test'. Query: 'insert into t values(1)'
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.


# 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 [So, Service_State after STOP SLAVE should be "OFF".]

# 2. Extract the worker_id and the error related fields from SSS and PS
#    table and compare them. These fields should preserve their values.

include/assert.inc [Worker_Id should be 1]
include/assert.inc [Value returned by SSS and PS table for Last_Error_Number should be same.]
Last_Error_Message
Worker 1 failed executing transaction 'ANONYMOUS' at master log FILENAME, end_log_pos POSITION; Error 'Table 'test.t' doesn't exist' on query. Default database: 'test'. Query: 'insert into t values(1)'
include/assert.inc [Value returned by SSS and PS table for Last_Error_Timestamp should be same.]
stop slave;
reset slave;
drop table t;
reset master;

# Set up replication in gtid-mode=on and test 'Last_Seen_Transaction'
# field.

include/rpl_set_gtid_mode.inc [ON on servers 1,2]
stop slave;
Warnings:
Note	3084	Replication thread(s) for channel '' are already stopped.
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 @@global.slave_parallel_workers=1;
set @save_slave_transaction_retries= @@global.slave_transaction_retries;
start slave;
create database d1;
create table d1.t1(a int);
insert into d1.t1 values(1);
select Last_Seen_Transaction from performance_schema.replication_applier_status_by_worker;
Last_Seen_Transaction	MASTER_UUID:3

# Verify that the value in 'Last_Seen_Transaction' field is preserved
# after STOP SLAVE.

include/stop_slave.inc
select Last_Seen_Transaction from performance_schema.replication_applier_status_by_worker;
Last_Seen_Transaction	MASTER_UUID:3
#
# BUG#20513547 REPLICATION_APPLIER_STATUS_BY_WORKER SHOWS
#              WRONG WORKER_ID WHEN SLAVE STOPS
#
SET @@GLOBAL.slave_parallel_workers = 3;
include/start_slave.inc
SELECT worker_id from performance_schema.replication_applier_status_by_worker;
worker_id
1
2
3
include/stop_slave.inc
SELECT worker_id from performance_schema.replication_applier_status_by_worker;
worker_id
1
2
3

# Cleanup.

DROP DATABASE d1;
set @@global.slave_parallel_workers= @save_slave_parallel_workers;
set @@global.slave_transaction_retries= @save_slave_transaction_retries;
include/start_slave.inc
include/rpl_set_gtid_mode.inc [OFF on servers 1,2]
include/rpl_end.inc

Man Man