Commit 96fa29cd authored by Alice Sherepa's avatar Alice Sherepa

innodb suite bug11766634, autoinc_reset

parent 3c388c3f
...@@ -2,10 +2,10 @@ CREATE TABLE t1 ( ...@@ -2,10 +2,10 @@ CREATE TABLE t1 (
id INT AUTO_INCREMENT PRIMARY KEY, id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) name VARCHAR(100)
) ENGINE=InnoDB AUTO_INCREMENT=99; ) ENGINE=InnoDB AUTO_INCREMENT=99;
SET GLOBAL debug="+d,innodb_evict_autoinc_table"; SET @@debug_dbug="+d,innodb_evict_autoinc_table";
SET GLOBAL innodb_ft_aux_table="test/t1"; SET GLOBAL innodb_ft_aux_table="test/t1";
ERROR 42000: Variable 'innodb_ft_aux_table' can't be set to the value of 'test/t1' ERROR 42000: Variable 'innodb_ft_aux_table' can't be set to the value of 'test/t1'
SET GLOBAL debug="-d,innodb_evict_autoinc_table"; SET @@debug_dbug="-d,innodb_evict_autoinc_table";
INSERT INTO t1(name) VALUES('mysql'); INSERT INTO t1(name) VALUES('mysql');
SELECT * FROM t1; SELECT * FROM t1;
id name id name
......
...@@ -21,7 +21,7 @@ call mtr.add_suppression("InnoDB: The log sequence numbers [0-9]+ and [0-9]+ in ...@@ -21,7 +21,7 @@ call mtr.add_suppression("InnoDB: The log sequence numbers [0-9]+ and [0-9]+ in
CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=InnoDB; CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=InnoDB;
SET DEBUG='+d,crash_commit_before'; SET debug_dbug='+d,crash_commit_before';
# Write file to make mysql-test-run.pl restart the server # Write file to make mysql-test-run.pl restart the server
--exec echo "restart: --innodb-log-file-size=6M" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --exec echo "restart: --innodb-log-file-size=6M" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--error 2013 --error 2013
...@@ -35,7 +35,7 @@ SELECT * FROM t1; ...@@ -35,7 +35,7 @@ SELECT * FROM t1;
INSERT INTO t1 VALUES (42); INSERT INTO t1 VALUES (42);
SET DEBUG='+d,crash_commit_before'; SET debug_dbug='+d,crash_commit_before';
# Write file to make mysql-test-run.pl restart the server # Write file to make mysql-test-run.pl restart the server
--exec echo "restart: --innodb-log-files-in-group=3 --innodb-log-file-size=5M" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --exec echo "restart: --innodb-log-files-in-group=3 --innodb-log-file-size=5M" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--error 2013 --error 2013
...@@ -54,7 +54,7 @@ let SEARCH_FILE= $MYSQLTEST_VARDIR/log/my_restart.err; ...@@ -54,7 +54,7 @@ let SEARCH_FILE= $MYSQLTEST_VARDIR/log/my_restart.err;
let $args=--loose-console --default-storage-engine=innodb > $SEARCH_FILE 2>&1; let $args=--loose-console --default-storage-engine=innodb > $SEARCH_FILE 2>&1;
let crash=$args --innodb-force-recovery-crash; let crash=$args --innodb-force-recovery-crash;
SET DEBUG='+d,crash_commit_before'; SET debug_dbug='+d,crash_commit_before';
# Write file to make mysql-test-run.pl restart the server # Write file to make mysql-test-run.pl restart the server
--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--error 2013 --error 2013
...@@ -97,6 +97,8 @@ let SEARCH_PATTERN= InnoDB: Recovery skipped, --innodb-read-only set!; ...@@ -97,6 +97,8 @@ let SEARCH_PATTERN= InnoDB: Recovery skipped, --innodb-read-only set!;
--source include/search_pattern_in_file.inc --source include/search_pattern_in_file.inc
let SEARCH_PATTERN= InnoDB: Can.t initiate database recovery, running in read-only-mode; let SEARCH_PATTERN= InnoDB: Can.t initiate database recovery, running in read-only-mode;
--source include/search_pattern_in_file.inc --source include/search_pattern_in_file.inc
--exec cat $SEARCH_FILE
--remove_file $SEARCH_FILE --remove_file $SEARCH_FILE
--echo --innodb-force-recovery-crash=4 --echo --innodb-force-recovery-crash=4
...@@ -106,7 +108,10 @@ let SEARCH_PATTERN= InnoDB: Starting an apply batch of log records; ...@@ -106,7 +108,10 @@ let SEARCH_PATTERN= InnoDB: Starting an apply batch of log records;
--source include/search_pattern_in_file.inc --source include/search_pattern_in_file.inc
let SEARCH_PATTERN= InnoDB: Resizing redo log from 3\*[0-9]+ to 2\*[0-9]+ pages; let SEARCH_PATTERN= InnoDB: Resizing redo log from 3\*[0-9]+ to 2\*[0-9]+ pages;
--source include/search_pattern_in_file.inc --source include/search_pattern_in_file.inc
--exec cat $SEARCH_FILE
--remove_file $SEARCH_FILE --remove_file $SEARCH_FILE
--echo --innodb-force-recovery-crash=5 --echo --innodb-force-recovery-crash=5
--error 7 --error 7
--exec $MYSQLD_CMD $crash=5 --exec $MYSQLD_CMD $crash=5
......
...@@ -10,13 +10,13 @@ CREATE TABLE t1 ( ...@@ -10,13 +10,13 @@ CREATE TABLE t1 (
name VARCHAR(100) name VARCHAR(100)
) ENGINE=InnoDB AUTO_INCREMENT=99; ) ENGINE=InnoDB AUTO_INCREMENT=99;
SET GLOBAL debug="+d,innodb_evict_autoinc_table"; SET @@debug_dbug="+d,innodb_evict_autoinc_table";
# Evict t1 from dictionary cache # Evict t1 from dictionary cache
-- error ER_WRONG_VALUE_FOR_VAR -- error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL innodb_ft_aux_table="test/t1"; SET GLOBAL innodb_ft_aux_table="test/t1";
SET GLOBAL debug="-d,innodb_evict_autoinc_table"; SET @@debug_dbug="-d,innodb_evict_autoinc_table";
INSERT INTO t1(name) VALUES('mysql'); INSERT INTO t1(name) VALUES('mysql');
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# drop table t1. create table t1. Insert the same set of $recs # drop table t1. create table t1. Insert the same set of $recs
# records. The size of ibdata1 must not increase. # records. The size of ibdata1 must not increase.
# #
-- source include/restart_and_reinit.inc
#Want to skip this test from daily Valgrind execution. #Want to skip this test from daily Valgrind execution.
--source include/no_valgrind_without_big.inc --source include/no_valgrind_without_big.inc
# Adding big test option for this test. # Adding big test option for this test.
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
# #
let $MYSQL_DATA_DIR = `select @@datadir`; let $MYSQL_DATA_DIR = `select @@datadir`;
let SEARCH_FILE = $MYSQLTEST_VARDIR/log/my_restart.err; let SEARCH_FILE = $MYSQLTEST_VARDIR/log/my_restart.err;
let $args = --loose-console > $SEARCH_FILE 2>&1; let $args=--loose-console --default-storage-engine=innodb > $SEARCH_FILE 2>&1;
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
use test; use test;
...@@ -31,11 +31,12 @@ use test; ...@@ -31,11 +31,12 @@ use test;
--mkdir $MYSQL_DATA_DIR/tmpdata --mkdir $MYSQL_DATA_DIR/tmpdata
--chmod 0400 $MYSQL_DATA_DIR/tmpdata --chmod 0400 $MYSQL_DATA_DIR/tmpdata
--error 1 --error 1
--exec $MYSQLD_CMD --innodb_data_home_dir=$MYSQL_DATA_DIR/tmpdata $args --exec $MYSQLD_CMD $args --innodb_data_home_dir=$MYSQL_DATA_DIR/tmpdata
let SEARCH_PATTERN = returned OS error 113; let SEARCH_PATTERN = returned OS error 113;
--source ./include/search_pattern.inc --source include/search_pattern_in_file.inc
let SEARCH_PATTERN = The error means mysqld does not have the access rights to; let SEARCH_PATTERN = The error means mysqld does not have the access rights to;
--source ./include/search_pattern.inc --source include/search_pattern_in_file.inc
#--exec cat $SEARCH_FILE
# #
--remove_file $SEARCH_FILE --remove_file $SEARCH_FILE
--chmod 0777 $MYSQL_DATA_DIR/tmpdata --chmod 0777 $MYSQL_DATA_DIR/tmpdata
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment