#Master [mysqld] pid-file = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/run/master.pid socket = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/run/master.sock log-error=/export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/master.log slow_query_log_file=/export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/slow.log general_log_file=/export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/general.log port = 15000 server-id = 1 basedir = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64 datadir = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/master tmpdir = /tmp log-bin = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/master-bin log-bin-index = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/master-bin.index #Slave1 [mysqld] pid-file = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/run/slave0.pid socket = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/run/slave0.sock log-error=/export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/slave0.log port = 15001 server-id = 2 basedir = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64 datadir = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/slave0 tmpdir = /tmp relay-log-index = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/slave0-relay-bin.index relay-log = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/slave0-relay-bin log_slow_slave_statements=ON slow_query_log=ON long_query_time=0 #Slave2 [mysqld] pid-file = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/run/slave1.pid socket = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/run/slave1.sock log-error=/export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/slave1.log port = 15002 server-id = 3 basedir = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64 datadir = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/slave1 tmpdir = /tmp relay-log-index = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/slave1-relay-bin.index relay-log = /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/log/slave1-relay-bin log_slow_slave_statements=ON slow_query_log=ON long_query_time=0 -- Bring up 2 instances(master/slave) [umshastr@hod03]/export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64: ls -l *.cnf -rw-r--r-- 1 umshastr common 948 Feb 28 07:45 master.cnf -rw-r--r-- 1 umshastr common 817 Feb 28 07:45 slave0.cnf -rw-r--r-- 1 umshastr common 824 Feb 28 07:46 slave1.cnf rm -rf master/ rm -rf slave0/ rm -rf slave1/ rm -rf log/ rm -rf run/ mkdir log mkdir run bin/mysqld --defaults-file=./master.cnf --initialize-insecure bin/mysqld --defaults-file=./slave0.cnf --initialize-insecure bin/mysqld --defaults-file=./slave1.cnf --initialize-insecure bin/mysqld --defaults-file=./master.cnf --gtid_mode=ON --log-bin --log-slave-updates --enforce-gtid-consistency & bin/mysqld --defaults-file=./slave0.cnf --gtid_mode=ON --log-bin --log-slave-updates --enforce-gtid-consistency & bin/mysqld --defaults-file=./slave1.cnf --gtid_mode=ON --log-bin --log-slave-updates --enforce-gtid-consistency & -- Setup Master/Slave replication, and install semisync plugins on master/s slave's.. - master [umshastr@hod03]/export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64: bin/mysql -uroot -S run/master.sock --prompt='Master>' Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.17-log MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. Master> Master>CREATE USER 'repl'@'localhost' IDENTIFIED BY 'slavepass'; Query OK, 0 rows affected (0.00 sec) Master>GRANT REPLICATION SLAVE ON *.* TO 'repl'@'localhost'; Query OK, 0 rows affected (0.00 sec) Master> Master>CREATE USER 'repl'@'127.0.0.1' IDENTIFIED BY 'slavepass'; Query OK, 0 rows affected (0.00 sec) Master>GRANT REPLICATION SLAVE ON *.* TO 'repl'@'127.0.0.1'; Query OK, 0 rows affected (0.01 sec) Master>FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) Master> - slave0 [umshastr@hod03]/export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64: bin/mysql -uroot -S run/slave0.sock --prompt='Slave0>' Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.17-log MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. Slave0>CHANGE MASTER TO -> MASTER_HOST='127.0.0.1', -> MASTER_PORT=15000, -> MASTER_USER='repl', -> MASTER_PASSWORD='slavepass', -> MASTER_AUTO_POSITION = 1; Query OK, 0 rows affected, 2 warnings (0.01 sec) Slave0>start slave; Query OK, 0 rows affected (0.00 sec) Slave0>show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 127.0.0.1 Master_User: repl Master_Port: 15000 Connect_Retry: 60 Master_Log_File: master-bin.000002 Read_Master_Log_Pos: 1220 Relay_Log_File: slave0-relay-bin.000002 Relay_Log_Pos: 1435 Relay_Master_Log_File: master-bin.000002 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 1220 Relay_Log_Space: 1643 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 Master_UUID: 6bb624b9-1c56-11e8-a46b-0010e05f3e06 Master_Info_File: /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/slave0/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-5 Executed_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-5 Auto_Position: 1 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: 1 row in set (0.00 sec) - slave1 [umshastr@hod03]/export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64: bin/mysql -uroot -S run/slave1.sock --prompt='Slave1>' Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.17-log MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. Slave1>CHANGE MASTER TO -> MASTER_HOST='127.0.0.1', -> MASTER_PORT=15000, -> MASTER_USER='repl', -> MASTER_PASSWORD='slavepass', -> MASTER_AUTO_POSITION = 1; Query OK, 0 rows affected, 2 warnings (0.01 sec) Slave1>start slave; Query OK, 0 rows affected (0.00 sec) Slave1>show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 127.0.0.1 Master_User: repl Master_Port: 15000 Connect_Retry: 60 Master_Log_File: master-bin.000002 Read_Master_Log_Pos: 1220 Relay_Log_File: slave1-relay-bin.000002 Relay_Log_Pos: 1435 Relay_Master_Log_File: master-bin.000002 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 1220 Relay_Log_Space: 1643 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 Master_UUID: 6bb624b9-1c56-11e8-a46b-0010e05f3e06 Master_Info_File: /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/slave1/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-5 Executed_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-5 Auto_Position: 1 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: 1 row in set (0.00 sec) -- enable semisync - master Master>INSTALL PLUGIN rpl_semi_sync_master SONAME 'semisync_master.so'; Query OK, 0 rows affected (0.00 sec) Master>SET GLOBAL rpl_semi_sync_master_enabled =1; Query OK, 0 rows affected (0.00 sec) Master>SET GLOBAL rpl_semi_sync_master_timeout =10000; Query OK, 0 rows affected (0.00 sec) Master>show variables like '%semi%'; +-------------------------------------------+------------+ | Variable_name | Value | +-------------------------------------------+------------+ | rpl_semi_sync_master_enabled | ON | | rpl_semi_sync_master_timeout | 10000 | | rpl_semi_sync_master_trace_level | 32 | | rpl_semi_sync_master_wait_for_slave_count | 1 | | rpl_semi_sync_master_wait_no_slave | ON | | rpl_semi_sync_master_wait_point | AFTER_SYNC | +-------------------------------------------+------------+ 6 rows in set (0.00 sec) - slave0 Slave0>INSTALL PLUGIN rpl_semi_sync_slave SONAME 'semisync_slave.so'; Query OK, 0 rows affected (0.00 sec) Slave0>SET GLOBAL rpl_semi_sync_slave_enabled =1; Query OK, 0 rows affected (0.00 sec) Slave0>show variables like '%semi%'; +---------------------------------+-------+ | Variable_name | Value | +---------------------------------+-------+ | rpl_semi_sync_slave_enabled | ON | | rpl_semi_sync_slave_trace_level | 32 | +---------------------------------+-------+ 2 rows in set (0.00 sec) - slave1 Slave1>INSTALL PLUGIN rpl_semi_sync_slave SONAME 'semisync_slave.so'; Query OK, 0 rows affected (0.00 sec) Slave1>SET GLOBAL rpl_semi_sync_slave_enabled =1; Query OK, 0 rows affected (0.00 sec) Slave1>show variables like '%semi%'; +---------------------------------+-------+ | Variable_name | Value | +---------------------------------+-------+ | rpl_semi_sync_slave_enabled | ON | | rpl_semi_sync_slave_trace_level | 32 | +---------------------------------+-------+ 2 rows in set (0.00 sec) -- Follow reporter's steps 1. Set up semi-sync replication with 1 master and 2 slaves. Keep inserting data on master. -- Provisioning data on master using sysbench [umshastr@hod03]~/bugs/sysbench: sysbench/sysbench --num-threads=4 --db-driver=mysql --test=/home/umshastr/bugs/sysbench/sysbench/tests/db/oltp.lua --mysql-table-engine=InnoDB --mysql-db=sbtest1 --mysql-user=root --oltp-table-size=100000000 --mysql-socket=/export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/run/master.sock prepare sysbench 0.5: multi-threaded system evaluation benchmark Creating table 'sbtest1'... Inserting 100000000 records into 'sbtest1' ^^ let it be running.. 2. On master, `set global rpl_semi_sync_master_wait_for_slave_count=2` Master>set global rpl_semi_sync_master_wait_for_slave_count=2; Query OK, 0 rows affected (0.00 sec) 3. On master, check `Rpl_semi_sync_master_status` is "ON" Master>show global status like '%semi%'; +--------------------------------------------+-----------+ | Variable_name | Value | +--------------------------------------------+-----------+ | Rpl_semi_sync_master_clients | 2 | | Rpl_semi_sync_master_net_avg_wait_time | 0 | | Rpl_semi_sync_master_net_wait_time | 0 | | Rpl_semi_sync_master_net_waits | 1819665 | | Rpl_semi_sync_master_no_times | 1 | | Rpl_semi_sync_master_no_tx | 233242 | | Rpl_semi_sync_master_status | ON | | Rpl_semi_sync_master_timefunc_failures | 0 | | Rpl_semi_sync_master_tx_avg_wait_time | 188 | | Rpl_semi_sync_master_tx_wait_time | 170907567 | | Rpl_semi_sync_master_tx_waits | 908551 | | Rpl_semi_sync_master_wait_pos_backtraverse | 0 | | Rpl_semi_sync_master_wait_sessions | 0 | | Rpl_semi_sync_master_yes_tx | 909814 | +--------------------------------------------+-----------+ 14 rows in set (0.00 sec) Master>show variables like '%semi%'; +-------------------------------------------+------------+ | Variable_name | Value | +-------------------------------------------+------------+ | rpl_semi_sync_master_enabled | ON | | rpl_semi_sync_master_timeout | 10000 | | rpl_semi_sync_master_trace_level | 32 | | rpl_semi_sync_master_wait_for_slave_count | 2 | | rpl_semi_sync_master_wait_no_slave | ON | | rpl_semi_sync_master_wait_point | AFTER_SYNC | +-------------------------------------------+------------+ 6 rows in set (0.01 sec) 4. On master, `set global rpl_semi_sync_master_wait_for_slave_count=1` Master>set global rpl_semi_sync_master_wait_for_slave_count=1; Query OK, 0 rows affected (0.00 sec) Master>show global status like '%semi%'; +--------------------------------------------+-----------+ | Variable_name | Value | +--------------------------------------------+-----------+ | Rpl_semi_sync_master_clients | 1 | | Rpl_semi_sync_master_net_avg_wait_time | 0 | | Rpl_semi_sync_master_net_wait_time | 0 | | Rpl_semi_sync_master_net_waits | 1821767 | | Rpl_semi_sync_master_no_times | 1 | | Rpl_semi_sync_master_no_tx | 233242 | | Rpl_semi_sync_master_status | ON | | Rpl_semi_sync_master_timefunc_failures | 0 | | Rpl_semi_sync_master_tx_avg_wait_time | 193 | | Rpl_semi_sync_master_tx_wait_time | 176225617 | | Rpl_semi_sync_master_tx_waits | 910129 | | Rpl_semi_sync_master_wait_pos_backtraverse | 0 | | Rpl_semi_sync_master_wait_sessions | 0 | | Rpl_semi_sync_master_yes_tx | 911392 | +--------------------------------------------+-----------+ 14 rows in set (0.00 sec) Master>show variables like '%semi%'; +-------------------------------------------+------------+ | Variable_name | Value | +-------------------------------------------+------------+ | rpl_semi_sync_master_enabled | ON | | rpl_semi_sync_master_timeout | 10000 | | rpl_semi_sync_master_trace_level | 32 | | rpl_semi_sync_master_wait_for_slave_count | 1 | | rpl_semi_sync_master_wait_no_slave | ON | | rpl_semi_sync_master_wait_point | AFTER_SYNC | +-------------------------------------------+------------+ 6 rows in set (0.01 sec) 5. On slave1, `stop slave; start slave;` Slave0>stop slave; start slave; Query OK, 0 rows affected (0.10 sec) Query OK, 0 rows affected (0.00 sec) 6. On slave1, keep checking master status, GTID will not change for minutes Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>select now(); +---------------------+ | now() | +---------------------+ | 2018-02-28 08:56:47 | +---------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>select now(); +---------------------+ | now() | +---------------------+ | 2018-02-28 08:56:54 | +---------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>select now(); +---------------------+ | now() | +---------------------+ | 2018-02-28 08:58:31 | +---------------------+ 1 row in set (0.00 sec) Slave0>show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting to reconnect after a failed master event read Master_Host: 127.0.0.1 Master_User: repl Master_Port: 15000 Connect_Retry: 60 Master_Log_File: master-bin.000004 Read_Master_Log_Pos: 721733095 Relay_Log_File: slave0-relay-bin.000009 Relay_Log_Pos: 721733310 Relay_Master_Log_File: master-bin.000004 Slave_IO_Running: Connecting Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 721733095 Relay_Log_Space: 721733606 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: NULL Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 Master_UUID: 6bb624b9-1c56-11e8-a46b-0010e05f3e06 Master_Info_File: /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/slave0/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 Executed_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 Auto_Position: 1 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: 1 row in set (0.00 sec) Slave0>show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting to reconnect after a failed master event read Master_Host: 127.0.0.1 Master_User: repl Master_Port: 15000 Connect_Retry: 60 Master_Log_File: master-bin.000004 Read_Master_Log_Pos: 721733095 Relay_Log_File: slave0-relay-bin.000009 Relay_Log_Pos: 721733310 Relay_Master_Log_File: master-bin.000004 Slave_IO_Running: Connecting Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 721733095 Relay_Log_Space: 721733606 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: NULL Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 Master_UUID: 6bb624b9-1c56-11e8-a46b-0010e05f3e06 Master_Info_File: /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/slave0/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 Executed_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 Auto_Position: 1 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: 1 row in set (0.00 sec) Slave0>select now(); +---------------------+ | now() | +---------------------+ | 2018-02-28 08:59:42 | +---------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0> Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>select now(); +---------------------+ | now() | +---------------------+ | 2018-02-28 09:01:12 | +---------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>select now(); +---------------------+ | now() | +---------------------+ | 2018-02-28 09:02:46 | +---------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>select now(); +---------------------+ | now() | +---------------------+ | 2018-02-28 09:05:58 | +---------------------+ 1 row in set (0.00 sec) Slave0> Slave0>show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting to reconnect after a failed master event read Master_Host: 127.0.0.1 Master_User: repl Master_Port: 15000 Connect_Retry: 60 Master_Log_File: master-bin.000004 Read_Master_Log_Pos: 721733095 Relay_Log_File: slave0-relay-bin.000009 Relay_Log_Pos: 721733310 Relay_Master_Log_File: master-bin.000004 Slave_IO_Running: Connecting Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 721733095 Relay_Log_Space: 721733606 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: NULL Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 Master_UUID: 6bb624b9-1c56-11e8-a46b-0010e05f3e06 Master_Info_File: /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/slave0/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 Executed_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 Auto_Position: 1 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: 1 row in set (0.00 sec) Slave0>show variables like '%semi%'; +---------------------------------+-------+ | Variable_name | Value | +---------------------------------+-------+ | rpl_semi_sync_slave_enabled | ON | | rpl_semi_sync_slave_trace_level | 32 | +---------------------------------+-------+ 2 rows in set (0.01 sec) Slave0>show global status like '%semi%'; +----------------------------+-------+ | Variable_name | Value | +----------------------------+-------+ | Rpl_semi_sync_slave_status | ON | +----------------------------+-------+ 1 row in set (0.00 sec) Slave0>show variables like '%semi%'; +---------------------------------+-------+ | Variable_name | Value | +---------------------------------+-------+ | rpl_semi_sync_slave_enabled | ON | | rpl_semi_sync_slave_trace_level | 32 | +---------------------------------+-------+ 2 rows in set (0.00 sec) Slave0>show global status like '%semi%'; +----------------------------+-------+ | Variable_name | Value | +----------------------------+-------+ | Rpl_semi_sync_slave_status | ON | +----------------------------+-------+ 1 row in set (0.00 sec) Slave0>select now(); +---------------------+ | now() | +---------------------+ | 2018-02-28 09:10:04 | +---------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec) Slave0>show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 127.0.0.1 Master_User: repl Master_Port: 15000 Connect_Retry: 60 Master_Log_File: master-bin.000004 Read_Master_Log_Pos: 721733095 Relay_Log_File: slave0-relay-bin.000009 Relay_Log_Pos: 721733310 Relay_Master_Log_File: master-bin.000004 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 721733095 Relay_Log_Space: 721733606 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 Master_UUID: 6bb624b9-1c56-11e8-a46b-0010e05f3e06 Master_Info_File: /export/umesh/server/binaries/GABuilds/mysql-5.7.17-linux-glibc2.5-x86_64/slave0/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 Executed_Gtid_Set: 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 Auto_Position: 1 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: 1 row in set (0.00 sec) Slave0>select now(); +---------------------+ | now() | +---------------------+ | 2018-02-28 09:14:17 | +---------------------+ 1 row in set (0.00 sec) Slave0>show master status; +------------------+-----------+--------------+------------------+------------------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------------+-----------+--------------+------------------+------------------------------------------------+ | hod03-bin.000003 | 706151937 | | | 6bb624b9-1c56-11e8-a46b-0010e05f3e06:1-1298710 | +------------------+-----------+--------------+------------------+------------------------------------------------+ 1 row in set (0.00 sec)