Current Path : /home/usr.opt/mysql57/mysql-test/suite/ndb/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : /home/usr.opt/mysql57/mysql-test/suite/ndb/t/ndb_err4012.test |
-- source include/not_embedded.inc -- source include/have_ndb.inc --echo # We are using some debug-only features in this test -- source include/have_debug.inc -- source have_ndb_error_insert.inc --echo # bulk delete with timeout error 4012 create table t4(id int primary key, val int) engine=ndb; insert into t4 values (1,1), (2,2), (3,3), (4,4), (5,5); --exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 8108" >> $NDB_TOOLS_OUTPUT set @save_debug = @@session.debug; --echo # Error injection in Ndb::waitCompletedTransactions so that transaction times out quickly SET SESSION debug="+d,early_trans_timeout"; --error 1296 delete from t4 where id > 0; SET SESSION debug=@save_debug; --exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 0" >> $NDB_TOOLS_OUTPUT drop table t4; --echo # bulk delete ignore with timeout error 4012 create table t4(id int primary key, val int) engine=ndb; insert into t4 values (1,1), (2,2), (3,3), (4,4), (5,5); --exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 8108" >> $NDB_TOOLS_OUTPUT set @save_debug = @@session.debug; --echo # Error injection in Ndb::waitCompletedTransactions so that transaction times out quickly SET SESSION debug="+d,early_trans_timeout"; # The statement fails although it's using IGNORE since the provoked error is # not in the list of errors to IGNORE, see Ignore_error_handler --error 1296 delete ignore from t4 where id > 0; SET SESSION debug=@save_debug; --exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 0" >> $NDB_TOOLS_OUTPUT drop table t4; --echo # bulk update with timeout error 4012 create table t4(id int primary key, val int) engine=ndb; insert into t4 values (1,1), (2,2), (3,3), (4,4), (5,5); --exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 8108" >> $NDB_TOOLS_OUTPUT set @save_debug = @@session.debug; --echo # Error injection in Ndb::waitCompletedTransactions so that transaction times out quickly SET SESSION debug="+d,early_trans_timeout"; --error 1296 update t4 set val = 0 where id > 0; SET SESSION debug=@save_debug; --exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 0" >> $NDB_TOOLS_OUTPUT drop table t4; --echo # bulk update ignore is not possible because 'ignore' disables bulk updates --echo # mysqld gets timeout error 4008 on CREATE TABLE --exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 6216" >> $NDB_TOOLS_OUTPUT set @save_debug = @@session.debug; SET SESSION debug="+d,ndb_timeout_gettabinforeq"; --error 1296 create table t4(id int primary key, val int)engine=ndb; show warnings; --exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 0" >> $NDB_TOOLS_OUTPUT SET SESSION debug=@save_debug;