polardbxengine/mysql-test/suite/xcluster/t/bug10790181.test

22 lines
921 B
Plaintext

--disable_query_log
call mtr.add_suppression('\\[Warning\\] Failed to flush log ,because consensus log is too large');
call mtr.add_suppression('\\[Warning\\] Failed to commit ,because previous error or shutdown or leadership changed, system apply index:[0-9]*, thd consensus term:[0-9]*, consensus index:[0-9]*');
--enable_query_log
# connect 3 server. must have test database
--connect (leader,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_3)
--connection leader
use test;
create table t1 (data varchar(1024));
insert into t1 values ("test");
insert into t1 values (REPEAT('test',100));
let $restart_parameters = restart: --consensus_max_log_size=512 --consensus_large_trx=OFF;
--source include/kill_and_restart_mysqld.inc
insert into t1 values ("test");
--error ER_CONSENSUS_LOG_TOO_LARGE
insert into t1 values (REPEAT('test',100));