[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.221.198.45: ~ $
# Partitioning test that require debug features and InnoDB
# including crashing tests.

# This test takes long time, so only run it with the --big-test mtr-flag.
--source include/big_test.inc
--source include/have_debug.inc
--source include/have_innodb.inc
--source include/have_partition.inc
# Don't test this under valgrind, memory leaks will occur
--source include/not_valgrind.inc
# Crash tests don't work with embedded
--source include/not_embedded.inc

--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings

--let $DATADIR= `SELECT @@datadir;`

# Waiting for wl#6723
if (0)
{
--echo #
--echo # Bug#12696518/Bug#11766879/60106:DIFF BETWEEN # OF INDEXES IN MYSQL
--echo # VS INNODB, PARTITONING, ON INDEX CREATE
--echo #
CREATE TABLE t1
(a INT PRIMARY KEY,
 b VARCHAR(64))
ENGINE = InnoDB
PARTITION BY HASH (a) PARTITIONS 3;
INSERT INTO t1 VALUES (0, 'first row'), (1, 'second row'), (2, 'Third row');
INSERT INTO t1 VALUES (3, 'row id 3'), (4, '4 row'), (5, 'row5');
INSERT INTO t1 VALUES (6, 'X 6 row'), (7, 'Seventh row'), (8, 'Last row');

ALTER TABLE t1 ADD INDEX new_b_index (b);
ALTER TABLE t1 DROP INDEX new_b_index;

SET SESSION debug= "+d,ha_partition_fail_final_add_index";

--error ER_NO_PARTITION_FOR_GIVEN_VALUE
ALTER TABLE t1 ADD INDEX (b);
SHOW CREATE TABLE t1;
--sorted_result
SELECT * FROM t1;

FLUSH TABLES;
--error ER_NO_PARTITION_FOR_GIVEN_VALUE
CREATE INDEX new_index ON t1 (b);
SHOW CREATE TABLE t1;
--sorted_result
SELECT * FROM t1;

SET SESSION debug= "-d,ha_partition_fail_final_add_index";
SHOW CREATE TABLE t1;
DROP TABLE t1;
}

# Checking with #innodb what this is...
call mtr.add_suppression("InnoDB: Warning: allocated tablespace .*, old maximum was");
# If there is a crash or failure between the ddl_log is written and the
# operation is completed, mysql will try to drop a not yet created partition
call mtr.add_suppression("InnoDB: Error: table .* does not exist in the InnoDB internal");
call mtr.add_suppression("InnoDB: Warning: MySQL is trying to drop table ");


let $engine= 'InnoDB';

--echo # Test crash and failure recovery in fast_alter_partition_table.
--source suite/parts/inc/partition_mgm_crash.inc

--echo #
--echo # WL#4445: EXCHANGE PARTITION WITH TABLE
--echo # Verify ddl_log and InnoDB in case of crashing.
# Investigating if this warning is OK when crash testing.
call mtr.add_suppression("InnoDB: Warning: allocated tablespace .*, old maximum was ");
#
call mtr.add_suppression("Attempting backtrace. You can use the following information to find out");
call mtr.add_suppression("table .* does not exist in the InnoDB internal");

let $create_statement= CREATE TABLE t1 (a INT, b VARCHAR(64))
ENGINE = InnoDB
PARTITION BY RANGE (a)
(PARTITION p0 VALUES LESS THAN (10),
 PARTITION p1 VALUES LESS THAN MAXVALUE);
let $insert_statement= INSERT INTO t1 VALUES (1, "Original from partition p0"), (2, "Original from partition p0"), (3, "Original from partition p0"), (4, "Original from partition p0"), (11, "Original from partition p1"), (12, "Original from partition p1"), (13, "Original from partition p1"), (14, "Original from partition p1"), (21, "Original from partition p1"), (22, "Original from partition p1"), (23, "Original from partition p1"), (24, "Original from partition p1");

let $create_statement2= CREATE TABLE t2 (a INT, b VARCHAR(64)) ENGINE = InnoDB;
let $insert_statement2= INSERT INTO t2 VALUES (5, "Original from table t2"), (6, "Original from table t2"), (7, "Original from table t2"), (8, "Original from table t2");
let $crash_statement= ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
--source suite/parts/inc/partition_crash_exchange.inc
let $fail_statement= $crash_statement;
--source suite/parts/inc/partition_fail_exchange.inc

Filemanager

Name Type Size Permission Actions
disabled.def File 1.37 KB 0644
part_blocked_sql_func_innodb.test File 2 KB 0644
part_blocked_sql_func_myisam.test File 1.96 KB 0644
part_ctype_utf32.test File 1.42 KB 0644
part_supported_sql_func_innodb.test File 2.15 KB 0644
part_supported_sql_func_myisam.test File 1.98 KB 0644
partition-dml-1-1-innodb-modes.test File 387 B 0644
partition-dml-1-1-innodb.test File 305 B 0644
partition-dml-1-1-myisam-modes.test File 266 B 0644
partition-dml-1-1-myisam.test File 184 B 0644
partition-dml-1-10-innodb.test File 102 B 0644
partition-dml-1-10-myisam.test File 69 B 0644
partition-dml-1-11-innodb.test File 306 B 0644
partition-dml-1-11-myisam.test File 185 B 0644
partition-dml-1-2-innodb.test File 101 B 0644
partition-dml-1-2-myisam.test File 68 B 0644
partition-dml-1-3-innodb.test File 101 B 0644
partition-dml-1-4-innodb.test File 101 B 0644
partition-dml-1-5-innodb.test File 101 B 0644
partition-dml-1-6-innodb.test File 101 B 0644
partition-dml-1-7-innodb.test File 101 B 0644
partition-dml-1-8-innodb.test File 101 B 0644
partition-dml-1-9-innodb.test File 217 B 0644
partition-dml-1-9-myisam.test File 184 B 0644
partition_alter1_1_2_innodb.test File 3.7 KB 0644
partition_alter1_1_2_myisam.test File 3.41 KB 0644
partition_alter1_1_innodb.test File 3.61 KB 0644
partition_alter1_1_myisam.test File 3.41 KB 0644
partition_alter1_2_innodb.test File 3.7 KB 0644
partition_alter1_2_myisam.test File 3.41 KB 0644
partition_alter2_1_1_innodb.test File 3.51 KB 0644
partition_alter2_1_2_innodb.test File 3.51 KB 0644
partition_alter2_1_myisam.test File 3.24 KB 0644
partition_alter2_2_1_innodb.test File 3.53 KB 0644
partition_alter2_2_2_innodb.test File 3.51 KB 0644
partition_alter2_2_myisam.test File 3.24 KB 0644
partition_alter3_innodb.test File 3.24 KB 0644
partition_alter3_myisam.test File 3.21 KB 0644
partition_alter4_innodb.test File 3.44 KB 0644
partition_alter4_myisam.test File 3.33 KB 0644
partition_auto_increment_archive.test File 1.88 KB 0644
partition_auto_increment_blackhole.test File 1.77 KB 0644
partition_auto_increment_innodb.test File 1.76 KB 0644
partition_auto_increment_memory.test File 1.73 KB 0644
partition_auto_increment_myisam.test File 1.73 KB 0644
partition_basic_innodb.test File 3.5 KB 0644
partition_basic_myisam.test File 3.17 KB 0644
partition_basic_symlink_innodb.test File 6.5 KB 0644
partition_basic_symlink_myisam.test File 3.57 KB 0644
partition_bit_innodb.test File 2.4 KB 0644
partition_bit_myisam.test File 2.37 KB 0644
partition_char_innodb.test File 2.4 KB 0644
partition_char_myisam.test File 2.37 KB 0644
partition_datetime_innodb.test File 2.27 KB 0644
partition_datetime_myisam.test File 2.24 KB 0644
partition_debug.test File 2.47 KB 0644
partition_debug_innodb-master.opt File 53 B 0644
partition_debug_innodb.test File 3.64 KB 0644
partition_debug_myisam.test File 568 B 0644
partition_debug_sync_innodb-master.opt File 26 B 0644
partition_debug_sync_innodb.test File 2.71 KB 0644
partition_decimal_innodb.test File 2.1 KB 0644
partition_decimal_myisam.test File 2.23 KB 0644
partition_engine_innodb.test File 3.24 KB 0644
partition_engine_myisam.test File 3.14 KB 0644
partition_exch_innodb.test File 242 B 0644
partition_exch_myisam.test File 209 B 0644
partition_exch_myisam_innodb.test File 442 B 0644
partition_exch_qa.test File 209 B 0644
partition_exch_qa_10.test File 1.69 KB 0644
partition_exch_qa_11.test File 844 B 0644
partition_exch_qa_12.test File 6.22 KB 0644
partition_exch_qa_13.test File 212 B 0644
partition_exch_qa_14.test File 2.42 KB 0644
partition_exch_qa_15.test File 800 B 0644
partition_exch_qa_1_innodb.test File 244 B 0644
partition_exch_qa_1_myisam.test File 211 B 0644
partition_exch_qa_2.test File 2.38 KB 0644
partition_exch_qa_3.test File 934 B 0644
partition_exch_qa_4_innodb.test File 244 B 0644
partition_exch_qa_4_myisam.test File 211 B 0644
partition_exch_qa_5_innodb.test File 244 B 0644
partition_exch_qa_5_myisam.test File 211 B 0644
partition_exch_qa_6.test File 2.88 KB 0644
partition_exch_qa_7_innodb.test File 244 B 0644
partition_exch_qa_7_myisam.test File 211 B 0644
partition_exch_qa_8_innodb.test File 244 B 0644
partition_exch_qa_8_myisam.test File 211 B 0644
partition_exchange_archive.test File 293 B 0644
partition_exchange_blackhole.test File 703 B 0644
partition_exchange_innodb.test File 178 B 0644
partition_exchange_memory.test File 145 B 0644
partition_exchange_myisam.test File 145 B 0644
partition_float_innodb.test File 2.14 KB 0644
partition_float_myisam.test File 2.2 KB 0644
partition_innodb_status_file-master.opt File 23 B 0644
partition_innodb_status_file.test File 563 B 0644
partition_int_innodb.test File 2.27 KB 0644
partition_int_myisam.test File 2.41 KB 0644
partition_max_parts_hash_innodb-master.opt File 59 B 0644
partition_max_parts_hash_innodb.test File 1.19 KB 0644
partition_max_parts_hash_myisam-master.opt File 59 B 0644
partition_max_parts_hash_myisam.test File 1.16 KB 0644
partition_max_parts_inv_innodb-master.opt File 59 B 0644
partition_max_parts_inv_innodb.test File 1.19 KB 0644
partition_max_parts_inv_myisam-master.opt File 59 B 0644
partition_max_parts_inv_myisam.test File 1.15 KB 0644
partition_max_parts_key_innodb-master.opt File 59 B 0644
partition_max_parts_key_innodb.test File 1.27 KB 0644
partition_max_parts_key_myisam-master.opt File 59 B 0644
partition_max_parts_key_myisam.test File 1.23 KB 0644
partition_max_parts_list_innodb-master.opt File 59 B 0644
partition_max_parts_list_innodb.test File 1.19 KB 0644
partition_max_parts_list_myisam-master.opt File 59 B 0644
partition_max_parts_list_myisam.test File 1.16 KB 0644
partition_max_parts_range_innodb-master.opt File 59 B 0644
partition_max_parts_range_innodb.test File 1.19 KB 0644
partition_max_parts_range_myisam-master.opt File 59 B 0644
partition_max_parts_range_myisam.test File 1.16 KB 0644
partition_max_sub_parts_key_list_innodb-master.opt File 59 B 0644
partition_max_sub_parts_key_list_innodb.test File 1.28 KB 0644
partition_max_sub_parts_key_list_myisam-master.opt File 59 B 0644
partition_max_sub_parts_key_list_myisam.test File 1.24 KB 0644
partition_max_sub_parts_key_range_innodb-master.opt File 59 B 0644
partition_max_sub_parts_key_range_innodb.test File 1.28 KB 0644
partition_max_sub_parts_key_range_myisam-master.opt File 59 B 0644
partition_max_sub_parts_key_range_myisam.test File 1.24 KB 0644
partition_max_sub_parts_list_innodb-master.opt File 59 B 0644
partition_max_sub_parts_list_innodb.test File 1.44 KB 0644
partition_max_sub_parts_list_myisam-master.opt File 59 B 0644
partition_max_sub_parts_list_myisam.test File 1.16 KB 0644
partition_max_sub_parts_range_innodb-master.opt File 59 B 0644
partition_max_sub_parts_range_innodb.test File 1.36 KB 0644
partition_max_sub_parts_range_myisam-master.opt File 59 B 0644
partition_max_sub_parts_range_myisam.test File 1.16 KB 0644
partition_mgm_lc0_archive.test File 2.01 KB 0644
partition_mgm_lc0_innodb.test File 1.99 KB 0644
partition_mgm_lc0_memory.test File 1.99 KB 0644
partition_mgm_lc0_myisam.test File 1.99 KB 0644
partition_mgm_lc1_archive-master.opt File 27 B 0644
partition_mgm_lc1_archive.test File 1.8 KB 0644
partition_mgm_lc1_innodb-master.opt File 27 B 0644
partition_mgm_lc1_innodb.test File 1.78 KB 0644
partition_mgm_lc1_memory-master.opt File 27 B 0644
partition_mgm_lc1_memory.test File 1.78 KB 0644
partition_mgm_lc1_myisam-master.opt File 27 B 0644
partition_mgm_lc1_myisam.test File 1.78 KB 0644
partition_mgm_lc2_archive-master.opt File 27 B 0644
partition_mgm_lc2_archive.test File 1.8 KB 0644
partition_mgm_lc2_innodb-master.opt File 27 B 0644
partition_mgm_lc2_innodb.test File 1.78 KB 0644
partition_mgm_lc2_memory-master.opt File 27 B 0644
partition_mgm_lc2_memory.test File 1.78 KB 0644
partition_mgm_lc2_myisam-master.opt File 27 B 0644
partition_mgm_lc2_myisam.test File 1.78 KB 0644
partition_recover_myisam-master.opt File 17 B 0644
partition_recover_myisam.test File 1.6 KB 0644
partition_reorganize_innodb.test File 5.76 KB 0644
partition_reorganize_myisam.test File 3.61 KB 0644
partition_repair_myisam.test File 12.45 KB 0644
partition_special_innodb-master.opt File 55 B 0644
partition_special_innodb.test File 7.1 KB 0644
partition_special_myisam.test File 3.12 KB 0644
partition_syntax_innodb.test File 3.25 KB 0644
partition_syntax_myisam.test File 3.14 KB 0644
partition_value_innodb.test File 3.4 KB 0644
partition_value_myisam.test File 3.36 KB 0644
rpl-partition-dml-1-1-innodb.test File 250 B 0644
rpl-partition-dml-1-1-myisam.test File 216 B 0644
rpl_partition.test File 5.26 KB 0644