# slow apply thread case --source include/have_debug_new.inc --source include/not_valgrind.inc --source include/not_windows.inc #--source include/have_innodb.inc --source include/have_binlog_format_row.inc --source include/have_log_bin.inc --source include/paxos.inc # connect 3 server. must have test database --connect (conn1,127.0.0.1,root,,test,$MYPORT_1) --connect (conn2,127.0.0.1,root,,test,$MYPORT_2) --connect (conn3,127.0.0.1,root,,test,$MYPORT_2) --connection conn2 SET SESSION DEBUG='+d, simulate_apply_too_slow'; --connection conn1 --replace_result $PAXOS_PORT_2 PAXOS_PORT_2 #change consensus_leader to 2; eval call dbms_consensus.change_leader("127.0.0.1:$PAXOS_PORT_2"); --connection conn3 --enable_reconnect let $wait_condition= select count(*)=1 from information_schema.alisql_cluster_local where role='leader'; --source include/wait_condition.inc #change consensus_leader to 1; --replace_result $PAXOS_PORT_1 PAXOS_PORT_1 eval call dbms_consensus.change_leader("127.0.0.1:$PAXOS_PORT_1"); --enable_reconnect let $wait_condition= select count(*)=1 from information_schema.alisql_cluster_local where role='follower'; --source include/wait_condition.inc --sleep 2 --replace_column 4 # 5 # 7 # 8 # 9 # 22 # 23 # 45 # 46 # 52 # 53 # show slave status; --connection conn1 --enable_reconnect let $wait_condition= select count(*)=1 from information_schema.alisql_cluster_local where role='leader'; --source include/wait_condition.inc