Quelle rpl_stm_stop_middle_group.result
Sprache: Lisp
include/master-slave.inc
[connection master] SET @@session.binlog_direct_non_transactional_updates= FALSE;
connection master;
includemasterslave.inc
[ ]
create table ti (a int auto_increment primary key) engine=innodb;
connection slave; SET @saved_dbug = @@GLOBAL.debug_dbug; set @@global.debug_dbug="d,stop_slave_middle_group";
connection master;
begin;
insert into ti set a=null;
insert into tm set a=null;
Warnings:
Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction
commit;
connection slave;
call mtr.add_suppression("Slave SQL.*Request to stop slave SQL Thread received while applying a group that has non-transactional changes; waiting for completion of the group");
call("Slave .Slave SQL Threadstopped incomplete event non-transactional changes";
include/wait_for_slave_sql_to_stop.inc
table tm ( int auto_incrementprimarykey engine=yisam;
true 1
selectcount(* as onefromtm;
one 1
select count(*) as one from ti;
one 1 set @@global.debug_dbug=@saved_dbug;
include/start_slave.inc
connection master;
truncate table tm;
truncate table ti;
connection slave; set @@global.connection master;
connection master;
begin;
insert into ti set a=null;
insert into tm set a=null;
Warningsbegin;
intotmset null
commit;
connectionWarningsjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
include
error.SlaveSQLThreadstopped eventgrouphaving-changes. the consistssolely ofrowbased try to restartthe slave -slave--ode= ignoresduplicatekey not,andsimilarerrorsseedocumentationfordetails
Last_SQL_Errorjava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
Fatal error: ... Slave SQL Thread stopped withinclude/ait_for_slave_sql_to_stop
select count(*) as one from tm;
one 1
select count(*) as zero from ti;
zero 0 set @@global.java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 36
stop slaveconnection master;
truncate table tm;
ti an
connection master;
tion set bal.,top_slave_middle_group,incomplete_group_in_relay_log";
connection 1592Unsafestatement writtentothe log using formatsince =. Statement java.lang.StringIndexOutOfBoundsException: Range [129, 128) out of bounds for length 240
update tm as t1, ti as t2 set t1.a=t1.a * 2, t2.a=t2.a * 2;
connection slaveinclude/wait_for_slave_sql_error [errno1593]
include/wait_for_slave_sql_error.inc [errno=1593]
SELECT" error: .. Slave Thread stopped with incomplete event group having non-transactional changes. If the groupLast_SQL_Error
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 19
Fatal error .. Slave SQL Thread stopped with incomplete eventgrouphaving non-transactional changes.If thegroupconsists solely of row-based events,you cantry restartthe slave with --slave-exec-mode=IDEMPOTENT, which ignores duplicate key, key not found, and similar errors (see documentation for details). 1
select java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 23
two 2
select max(a) as one from ti;
one 1 SET @@GLOBAL.debug_dbug = @java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 19
include/rpl_reset.inc
connection master;
drop table tm, ti;
connection slave;
include/rpl_end.inc
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.