Skip to content
This repository was archived by the owner on Jun 12, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mysql-test/suite/tokudb/r/tokudb_logger_find_logfiles_crash.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CREATE DATABASE log0002;
USE log0002;
CREATE TABLE t1(a int) ENGINE=TOKUDB;
INSERT INTO t1 VALUES(1);
shutdown server
USE log0002;
SELECT * FROM t1;
a
1
DROP DATABASE log0002;
29 changes: 29 additions & 0 deletions mysql-test/suite/tokudb/t/tokudb_logger_find_logfiles_crash.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
--source include/have_tokudb.inc
--let $_mysqld_datadir= `SELECT @@datadir`

# create log0001 file
--exec touch $_mysqld_datadir/log0001

CREATE DATABASE log0002;
USE log0002;
CREATE TABLE t1(a int) ENGINE=TOKUDB;
INSERT INTO t1 VALUES(1);

--echo shutdown server
--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--shutdown_server 10
--source include/wait_until_disconnected.inc
# Do something while server is down
--enable_reconnect
--exec echo "restart: --tokudb_cache_size=100M" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--source include/wait_until_connected_again.inc

--exec ls $_mysqld_datadir/log* |grep -q log0001
--exec ls $_mysqld_datadir/log* |grep -q log0002

USE log0002;
SELECT * FROM t1;

DROP DATABASE log0002;

--exec rm $_mysqld_datadir/log0001