SET DEFAULT_STORAGE_ENGINE = 'tokudb'; # Establish connection conn1 (user = root) connect conn1,localhost,root,,; DROP TABLE IF EXISTS foo; connection default; set session tokudb_load_save_space=0; set session transaction isolation level repeatable read; create table foo (a int)engine=TokuDB; show create table foo; Table Create Table foo CREATE TABLE `foo` ( `a` int(11) DEFAULT NULL ) ENGINE=TokuDB DEFAULT CHARSET=latin1 connection conn1; set session tokudb_load_save_space=0; set session transaction isolation level repeatable read; begin; select * from foo; a connection default; begin; insert into foo values (1),(2),(3); # should return 1,2,3 select * from foo; a 1 2 3 connection conn1; # should be empty select * from foo; a # verify that a bulk load was done, by trying to insert and fail due to ER_LOCK_WAIT_TIMEOUT insert into foo values (10000); ERROR HY000: Lock wait timeout exceeded; try restarting transaction commit; connection default; commit; connection conn1; # should see 1,2,3 select * from foo; a 1 2 3 connection default; commit; disconnect conn1; connection default; set session transaction isolation level serializable; DROP TABLE foo;