mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.1 into 10.2
This commit is contained in:
@@ -1,18 +1,23 @@
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
connection slave;
|
||||
set global debug_dbug='d,rows_log_event_before_open_table';
|
||||
set debug_sync='now WAIT_FOR before_open_table';
|
||||
connection master;
|
||||
create table t1 (a int);
|
||||
connection slave;
|
||||
connection slave;
|
||||
set global debug_dbug='d,rows_log_event_before_open_table';
|
||||
connection master;
|
||||
insert t1 values (1),(2),(3);
|
||||
connection slave;
|
||||
set debug_sync='now WAIT_FOR before_open_table';
|
||||
kill slave_sql_thread;
|
||||
set debug_sync='now SIGNAL go_ahead_sql';
|
||||
include/wait_for_slave_sql_error.inc [errno=1927]
|
||||
Last_SQL_Error = Error executing row event: 'Connection was killed'
|
||||
set global debug_dbug='';
|
||||
set debug_sync='RESET';
|
||||
connection master;
|
||||
drop table t1;
|
||||
connection slave;
|
||||
start slave;
|
||||
include/start_slave.inc
|
||||
Last_SQL_Error =
|
||||
include/rpl_end.inc
|
||||
|
@@ -27,10 +27,6 @@ select plugin_name,plugin_status from information_schema.plugins where plugin_na
|
||||
plugin_name plugin_status
|
||||
rpl_semi_sync_slave DELETED
|
||||
connection master;
|
||||
show global status like "Slave%_connect%";
|
||||
Variable_name Value
|
||||
Slave_connections 2
|
||||
Slaves_connected 1
|
||||
UNINSTALL PLUGIN rpl_semi_sync_master;
|
||||
Warnings:
|
||||
Warning 1620 Plugin is busy and will be uninstalled on shutdown
|
||||
|
@@ -2,27 +2,34 @@ source include/have_debug_sync.inc;
|
||||
source include/have_binlog_format_row.inc;
|
||||
source include/master-slave.inc;
|
||||
|
||||
connection slave;
|
||||
set global debug_dbug='d,rows_log_event_before_open_table';
|
||||
send set debug_sync='now WAIT_FOR before_open_table';
|
||||
|
||||
connection master;
|
||||
create table t1 (a int);
|
||||
--sync_slave_with_master
|
||||
|
||||
connection slave;
|
||||
set global debug_dbug='d,rows_log_event_before_open_table';
|
||||
|
||||
connection master;
|
||||
insert t1 values (1),(2),(3);
|
||||
|
||||
connection slave;
|
||||
reap;
|
||||
set debug_sync='now WAIT_FOR before_open_table';
|
||||
let $a=`select id from information_schema.processlist where state='debug sync point: now'`;
|
||||
replace_result $a slave_sql_thread;
|
||||
eval kill $a;
|
||||
set debug_sync='now SIGNAL go_ahead_sql';
|
||||
--let $slave_sql_errno= 1927
|
||||
--source include/wait_for_slave_sql_error.inc
|
||||
let $error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1);
|
||||
--echo Last_SQL_Error = $error
|
||||
set global debug_dbug='';
|
||||
set debug_sync='RESET';
|
||||
|
||||
connection master;
|
||||
drop table t1;
|
||||
|
||||
connection slave;
|
||||
start slave;
|
||||
--source include/start_slave.inc
|
||||
let $error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1);
|
||||
--echo Last_SQL_Error = $error
|
||||
|
||||
source include/rpl_end.inc;
|
||||
|
@@ -63,8 +63,13 @@ select plugin_name,plugin_status from information_schema.plugins where plugin_na
|
||||
--connection master
|
||||
|
||||
# The following is to catch errors if the next uninstall plugin would succeed
|
||||
show global status like "Slave%_connect%";
|
||||
|
||||
let $slaves_connected_value= query_get_value(SHOW GLOBAL STATUS LIKE 'Slaves_connected', Value, 1);
|
||||
if (`SELECT $slaves_connected_value <> 1`)
|
||||
{
|
||||
SHOW GLOBAL STATUS LIKE 'Slave_connections';
|
||||
SHOW GLOBAL STATUS LIKE 'Slaves_connected';
|
||||
--die *** Unexpected number of connected slaves ***
|
||||
}
|
||||
UNINSTALL PLUGIN rpl_semi_sync_master;
|
||||
select plugin_name,plugin_status from information_schema.plugins where plugin_name like 'rpl_%';
|
||||
|
||||
|
Reference in New Issue
Block a user