mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
refs #6372 add mysql upgrade tests from 6.6.8 to riddler
git-svn-id: file:///svn/mysql/tests/mysql-test@55211 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
85c23a7cf2
commit
0edca87cdb
39 changed files with 207 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,38 @@
|
|||
130408 13:12:25 mysqld_safe Starting mysqld daemon with databases from /home/prohaska/our.distros/mysql-5.5.28-tokudb-6.6.8-54738-linux-x86_64/data
|
||||
130408 13:12:25 [Note] Plugin 'FEDERATED' is disabled.
|
||||
130408 13:12:25 InnoDB: The InnoDB memory heap is disabled
|
||||
130408 13:12:25 InnoDB: Mutexes and rw_locks use GCC atomic builtins
|
||||
130408 13:12:25 InnoDB: Compressed tables use zlib 1.2.3
|
||||
130408 13:12:25 InnoDB: Using Linux native AIO
|
||||
130408 13:12:25 InnoDB: Initializing buffer pool, size = 128.0M
|
||||
130408 13:12:25 InnoDB: Completed initialization of buffer pool
|
||||
InnoDB: The first specified data file ./ibdata1 did not exist:
|
||||
InnoDB: a new database to be created!
|
||||
130408 13:12:25 InnoDB: Setting file ./ibdata1 size to 10 MB
|
||||
InnoDB: Database physically writes the file full: wait...
|
||||
130408 13:12:25 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
|
||||
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
|
||||
InnoDB: Database physically writes the file full: wait...
|
||||
130408 13:12:25 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
|
||||
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
|
||||
InnoDB: Database physically writes the file full: wait...
|
||||
InnoDB: Doublewrite buffer not found: creating new
|
||||
InnoDB: Doublewrite buffer created
|
||||
InnoDB: 127 rollback segment(s) active.
|
||||
InnoDB: Creating foreign key constraint system tables
|
||||
InnoDB: Foreign key constraint system tables created
|
||||
130408 13:12:25 InnoDB: 1.1.8 started; log sequence number 0
|
||||
130408 13:12:26 [Note] Server hostname (bind-address): '0.0.0.0'; port: 100000
|
||||
130408 13:12:26 [Note] - '0.0.0.0' resolves to '0.0.0.0';
|
||||
130408 13:12:26 [Note] Server socket created on IP: '0.0.0.0'.
|
||||
130408 13:12:26 [Note] Event Scheduler: Loaded 0 events
|
||||
130408 13:12:26 [Note] /home/prohaska/our.distros/mysql-5.5.28-tokudb-6.6.8-54738-linux-x86_64/bin/mysqld: ready for connections.
|
||||
Version: '5.5.28' socket: '/tmp/rfp.sock' port: 100000 MySQL Community Server (GPL)
|
||||
130408 13:18:22 [Note] /home/prohaska/our.distros/mysql-5.5.28-tokudb-6.6.8-54738-linux-x86_64/bin/mysqld: Normal shutdown
|
||||
|
||||
130408 13:18:22 [Note] Event Scheduler: Purging the queue. 0 events
|
||||
130408 13:18:22 InnoDB: Starting shutdown...
|
||||
130408 13:18:23 InnoDB: Shutdown completed; log sequence number 1595675
|
||||
130408 13:18:23 [Note] /home/prohaska/our.distros/mysql-5.5.28-tokudb-6.6.8-54738-linux-x86_64/bin/mysqld: Shutdown complete
|
||||
|
||||
130408 13:18:23 mysqld_safe mysqld from pid file /home/prohaska/our.distros/mysql-5.5.28-tokudb-6.6.8-54738-linux-x86_64/data/lex1.tokutek.com.pid ended
|
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/log000000000000.tokulog23
Executable file
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/log000000000000.tokulog23
Executable file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/test/ta.frm
Normal file
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/test/ta.frm
Normal file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/test/ta.par
Normal file
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/test/ta.par
Normal file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/tokudb.directory
Executable file
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/tokudb.directory
Executable file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/tokudb.environment
Executable file
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/tokudb.environment
Executable file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/tokudb.rollback
Executable file
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/tokudb.rollback
Executable file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/tokudb_meta_3_17.tokudb
Executable file
BIN
mysql-test/std_data/tokudb_drop_part_table_668/data/tokudb_meta_3_17.tokudb
Executable file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/_test_ta_main_8_17.tokudb
Executable file
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/_test_ta_main_8_17.tokudb
Executable file
Binary file not shown.
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/_test_tb_key_b_e_17.tokudb
Executable file
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/_test_tb_key_b_e_17.tokudb
Executable file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/_test_tb_main_d_17.tokudb
Executable file
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/_test_tb_main_d_17.tokudb
Executable file
Binary file not shown.
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/log000000000000.tokulog23
Executable file
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/log000000000000.tokulog23
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/tokudb.directory
Executable file
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/tokudb.directory
Executable file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/tokudb.environment
Executable file
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/tokudb.environment
Executable file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/tokudb.rollback
Executable file
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/tokudb.rollback
Executable file
Binary file not shown.
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/tokudb_meta_3_17.tokudb
Executable file
BIN
mysql-test/std_data/tokudb_drop_simple_table_668/data/tokudb_meta_3_17.tokudb
Executable file
Binary file not shown.
|
@ -0,0 +1,33 @@
|
|||
create table tc (id int, x int, primary key(id), key(x));
|
||||
select * from information_schema.tokudb_file_map;
|
||||
dictionary_name internal_file_name
|
||||
./test/ta-main ./_test_ta_main_8_17.tokudb
|
||||
./test/ta-status ./_test_ta_status_7_17.tokudb
|
||||
./test/tb-key-b ./_test_tb_key_b_e_17.tokudb
|
||||
./test/tb-main ./_test_tb_main_d_17.tokudb
|
||||
./test/tb-status ./_test_tb_status_c_17.tokudb
|
||||
./test/tc-key-x ./_test_tc_key_x_12_3_18.tokudb
|
||||
./test/tc-main ./_test_tc_main_12_2_18.tokudb
|
||||
./test/tc-status ./_test_tc_status_12_1_18.tokudb
|
||||
tokudb_meta ./tokudb_meta_3_17.tokudb
|
||||
drop table ta;
|
||||
select * from information_schema.tokudb_file_map;
|
||||
dictionary_name internal_file_name
|
||||
./test/tb-key-b ./_test_tb_key_b_e_17.tokudb
|
||||
./test/tb-main ./_test_tb_main_d_17.tokudb
|
||||
./test/tb-status ./_test_tb_status_c_17.tokudb
|
||||
./test/tc-key-x ./_test_tc_key_x_12_3_18.tokudb
|
||||
./test/tc-main ./_test_tc_main_12_2_18.tokudb
|
||||
./test/tc-status ./_test_tc_status_12_1_18.tokudb
|
||||
tokudb_meta ./tokudb_meta_3_17.tokudb
|
||||
drop table tb;
|
||||
select * from information_schema.tokudb_file_map;
|
||||
dictionary_name internal_file_name
|
||||
./test/tc-key-x ./_test_tc_key_x_12_3_18.tokudb
|
||||
./test/tc-main ./_test_tc_main_12_2_18.tokudb
|
||||
./test/tc-status ./_test_tc_status_12_1_18.tokudb
|
||||
tokudb_meta ./tokudb_meta_3_17.tokudb
|
||||
drop table tc;
|
||||
select * from information_schema.tokudb_file_map;
|
||||
dictionary_name internal_file_name
|
||||
tokudb_meta ./tokudb_meta_3_17.tokudb
|
|
@ -0,0 +1,67 @@
|
|||
# verify that we can drop partitioned tokudb tables created in tokudb 6.6.8
|
||||
|
||||
source include/have_tokudb.inc;
|
||||
|
||||
# capture the datadir
|
||||
let $MYSQLD_DATADIR= `SELECT @@datadir`;
|
||||
|
||||
# shutdown mysqld (code stolen from mysql_plugin.test)
|
||||
let $expect_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
|
||||
# MTR will remove this file later, but this might be too late.
|
||||
--error 0,1
|
||||
--remove_file $expect_file
|
||||
--write_file $expect_file
|
||||
wait
|
||||
EOF
|
||||
--shutdown_server 10
|
||||
--source include/wait_until_disconnected.inc
|
||||
|
||||
# remove all tokudb file in the datadir
|
||||
system mkdir $MYSQLD_DATADIR/save;
|
||||
system mv $MYSQLD_DATADIR/*toku* $MYSQLD_DATADIR/save;
|
||||
|
||||
# install 6.6.8 tokudb test files
|
||||
system cp -r std_data/tokudb_drop_part_table_668/data/* $MYSQLD_DATADIR;
|
||||
|
||||
# restart mysqld
|
||||
--append_file $expect_file
|
||||
restart
|
||||
EOF
|
||||
--enable_reconnect
|
||||
--source include/wait_until_connected_again.inc
|
||||
|
||||
create table tc (a int, b int, c int, primary key(a), key(b)) partition by hash(a) partitions 2;
|
||||
|
||||
# check that the tokudb meta data gets dropped when the table is dropped
|
||||
select * from information_schema.tokudb_file_map;
|
||||
drop table ta;
|
||||
select * from information_schema.tokudb_file_map;
|
||||
drop table tc;
|
||||
select * from information_schema.tokudb_file_map;
|
||||
|
||||
# check that the test dir is empty
|
||||
list_files $MYSQLD_DATADIR/test *.frm;
|
||||
|
||||
# shutdown mysqld (code stolen from mysql_plugin.test)
|
||||
let $expect_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
|
||||
# MTR will remove this file later, but this might be too late.
|
||||
--error 0,1
|
||||
--remove_file $expect_file
|
||||
--write_file $expect_file
|
||||
wait
|
||||
EOF
|
||||
--shutdown_server 10
|
||||
--source include/wait_until_disconnected.inc
|
||||
|
||||
# restore saved datadir
|
||||
system rm -rf $MYSQLD_DATADIR/*toku*;
|
||||
system mv $MYSQLD_DATADIR/save/* $MYSQLD_DATADIR;
|
||||
system rmdir $MYSQLD_DATADIR/save;
|
||||
|
||||
# restart mysqld
|
||||
--append_file $expect_file
|
||||
restart
|
||||
EOF
|
||||
--enable_reconnect
|
||||
--source include/wait_until_connected_again.inc
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
# verify that we can drop simple tokudb tables created in tokudb 6.6.8
|
||||
|
||||
source include/have_tokudb.inc;
|
||||
|
||||
# capture the datadir
|
||||
let $MYSQLD_DATADIR= `SELECT @@datadir`;
|
||||
|
||||
# shutdown mysqld (code stolen from mysql_plugin.test)
|
||||
let $expect_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
|
||||
# MTR will remove this file later, but this might be too late.
|
||||
--error 0,1
|
||||
--remove_file $expect_file
|
||||
--write_file $expect_file
|
||||
wait
|
||||
EOF
|
||||
--shutdown_server 10
|
||||
--source include/wait_until_disconnected.inc
|
||||
|
||||
# remove all tokudb file in the datadir
|
||||
system mkdir $MYSQLD_DATADIR/save;
|
||||
system mv $MYSQLD_DATADIR/*toku* $MYSQLD_DATADIR/save;
|
||||
|
||||
# install 6.6.8 tokudb test files
|
||||
system cp -r std_data/tokudb_drop_simple_table_668/data/* $MYSQLD_DATADIR;
|
||||
|
||||
# restart mysqld
|
||||
--append_file $expect_file
|
||||
restart
|
||||
EOF
|
||||
--enable_reconnect
|
||||
--source include/wait_until_connected_again.inc
|
||||
|
||||
create table tc (id int, x int, primary key(id), key(x));
|
||||
|
||||
# check that the tokudb meta data gets dropped when the table is dropped
|
||||
select * from information_schema.tokudb_file_map;
|
||||
drop table ta;
|
||||
select * from information_schema.tokudb_file_map;
|
||||
drop table tb;
|
||||
select * from information_schema.tokudb_file_map;
|
||||
drop table tc;
|
||||
select * from information_schema.tokudb_file_map;
|
||||
|
||||
# check that the test dir is empty
|
||||
list_files $MYSQLD_DATADIR/test *.frm;
|
||||
|
||||
# shutdown mysqld (code stolen from mysql_plugin.test)
|
||||
let $expect_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
|
||||
# MTR will remove this file later, but this might be too late.
|
||||
--error 0,1
|
||||
--remove_file $expect_file
|
||||
--write_file $expect_file
|
||||
wait
|
||||
EOF
|
||||
--shutdown_server 10
|
||||
--source include/wait_until_disconnected.inc
|
||||
|
||||
# restore saved datadir
|
||||
system rm -rf $MYSQLD_DATADIR/*toku*;
|
||||
system mv $MYSQLD_DATADIR/save/* $MYSQLD_DATADIR;
|
||||
system rmdir $MYSQLD_DATADIR/save;
|
||||
|
||||
# restart mysqld
|
||||
--append_file $expect_file
|
||||
restart
|
||||
EOF
|
||||
--enable_reconnect
|
||||
--source include/wait_until_connected_again.inc
|
||||
|
Loading…
Add table
Reference in a new issue