-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2493 from vlad-lesin/native-partitioning-toku-roc…
…ks-PR-5.7 PS-3889: Native Partitioning for TokuDB and RocksDB for 5.7
- Loading branch information
Showing
147 changed files
with
413,931 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
--replace_regex /[a-z0-9]+_[a-z0-9]+_[a-z0-9]+(_[BP]_[a-z0-9]+){0,1}\./id./ /sqlx_[a-z0-9]+_[a-z0-9]+_/sqlx_nnnn_nnnn_/ /sqlx-[a-z0-9]+_[a-z0-9]+/sqlx-nnnn_nnnn/ /#p#/#P#/ /#sp#/#SP#/ /#tmp#/#TMP#/ $ADDITIONAL_REGEX | ||
--replace_regex /_[a-z0-9]+_[a-z0-9]+_[a-z0-9]+(_[BP]_[a-z0-9]+){0,1}\.tokudb/_id.tokudb/ /sqlx_[a-z0-9]+_[a-z0-9]+_/sqlx_nnnn_nnnn_/ /sqlx-[a-z0-9]+_[a-z0-9]+/sqlx-nnnn_nnnn/ /#p#/#P#/ /#sp#/#SP#/ /#tmp#/#TMP#/ /_([0-9]+)\.sdi/_id.sdi/ $ADDITIONAL_REGEX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
mysql-test/suite/parts/inc/disable_native_partitioning.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--let $MYSQLD_DATADIR=`select @@datadir` | ||
|
||
--let $restart_parameters = "restart: --loose-$disable_native_partition_opt=0" | ||
--source include/restart_mysqld.inc | ||
|
||
eval CREATE TABLE t1 (a INT UNSIGNED NOT NULL, PRIMARY KEY(a)) ENGINE = $engine | ||
PARTITION BY RANGE (a) ( | ||
PARTITION p0 VALUES LESS THAN (100), | ||
PARTITION p1 VALUES LESS THAN (200) | ||
); | ||
|
||
--list_files $MYSQLD_DATADIR/test *.par | ||
|
||
DROP TABLE t1; | ||
|
||
--let $restart_parameters = "restart: " | ||
--source include/restart_mysqld.inc | ||
|
||
eval CREATE TABLE t1 (a INT UNSIGNED NOT NULL, PRIMARY KEY(a)) ENGINE = $engine | ||
PARTITION BY RANGE (a) ( | ||
PARTITION p0 VALUES LESS THAN (100), | ||
PARTITION p1 VALUES LESS THAN (200) | ||
); | ||
|
||
--list_files $MYSQLD_DATADIR/test *.par | ||
|
||
DROP TABLE t1; |
29 changes: 29 additions & 0 deletions
29
mysql-test/suite/parts/inc/update_parts_from_prev_ver_suppressions.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--disable_query_log | ||
call mtr.add_suppression("Resizing redo log from"); | ||
call mtr.add_suppression("Upgrading redo log"); | ||
call mtr.add_suppression("Starting to delete and rewrite log files"); | ||
call mtr.add_suppression("New log files created"); | ||
call mtr.add_suppression("You need to use --log-bin to make --binlog-format work"); | ||
call mtr.add_suppression("Creating routine without parsing routine body"); | ||
call mtr.add_suppression("Storage engine '.*' does not support system tables. \\[mysql.*\\]"); | ||
call mtr.add_suppression("Table 'mysql.component' doesn't exist"); | ||
call mtr.add_suppression("is expected to be transactional"); | ||
call mtr.add_suppression("table is missing or has an incorrect definition"); | ||
call mtr.add_suppression("ACL DDLs will not work unless mysql_upgrade is executed"); | ||
call mtr.add_suppression(".* Native table .* has the wrong structure"); | ||
call mtr.add_suppression("Column count of mysql.* is wrong"); | ||
call mtr.add_suppression(".*Missing system table mysql.global_grants.*"); | ||
call mtr.add_suppression("ACL table mysql.[a-z_]* missing. Some operations may fail."); | ||
call mtr.add_suppression("Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be opened"); | ||
call mtr.add_suppression("Error in checking mysql.slave_master_info repository info type of TABLE"); | ||
call mtr.add_suppression("Error creating master info: Error checking repositories."); | ||
call mtr.add_suppression("Slave: Failed to initialize the master info structure for channel"); | ||
call mtr.add_suppression("Failed to create or recover replication info repositories."); | ||
call mtr.add_suppression("Table .* has length mismatch in the column name table_name. Please run mysql_upgrade"); | ||
# 5.6 suppresions | ||
call mtr.add_suppression("Column count of performance_schema.* is wrong"); | ||
call mtr.add_suppression(".* has no `.*` column at position *"); | ||
call mtr.add_suppression("Failed to open optimizer cost constant tables"); | ||
call mtr.add_suppression(".* table is not ready to be used. Table '.*' cannot be opened."); | ||
call mtr.add_suppression("InnoDB: Cannot open '.*' for reading: No such file or directory"); | ||
--enable_query_log |
39 changes: 39 additions & 0 deletions
39
mysql-test/suite/parts/inc/upgrade_parts_from_prev_ver_alter.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--echo ######### | ||
--echo # Test for "ALTER TABLE ... UPGRADE PARTITIONING" | ||
--echo ### | ||
|
||
--echo # Unzip the zip file. | ||
--file_exists $DATA_ARCH_PATH | ||
--exec unzip -qo $DATA_ARCH_PATH -d $MYSQL_TMP_DIR | ||
|
||
--echo # Create a bootstrap file in temp location | ||
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR | ||
--exec echo $MYSQL_TMP_DIR/bootstrap.log | ||
|
||
--let $restart_parameters = "restart: --loose-skip-log-bin --skip-log-slave-updates --datadir=$MYSQLD_DATADIR1 $ADDITIONAL_OPTS" | ||
--let $restart_hide_args = 1 | ||
--source include/start_mysqld.inc | ||
|
||
--echo # Check test table before upgrade | ||
SHOW CREATE TABLE test.t1; | ||
SELECT * FROM test.t1 ORDER BY a; | ||
--source include/table_files_replace_pattern.inc | ||
--list_files $MYSQLD_DATADIR1/test/ | ||
|
||
--echo # Upgrade | ||
ALTER TABLE test.t1 UPGRADE PARTITIONING; | ||
|
||
--echo # Check test table after upgrade | ||
SHOW CREATE TABLE test.t1; | ||
SELECT * FROM test.t1 ORDER BY a; | ||
--source include/table_files_replace_pattern.inc | ||
--list_files $MYSQLD_DATADIR1/test/ | ||
|
||
--echo # Stop the server | ||
--source include/shutdown_mysqld.inc | ||
|
||
--let $restart_parameters = | ||
--let $restart_hide_args = | ||
|
||
--echo # Remove data directory | ||
--exec rm -rf $MYSQLD_DATADIR1 |
32 changes: 32 additions & 0 deletions
32
mysql-test/suite/parts/inc/upgrade_parts_from_prev_ver_mysql_upgrade.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--echo ######### | ||
--echo # Test for upgrade partitioning with mysql_upgrade | ||
--echo ### | ||
|
||
--echo # Unzip the zip file. | ||
--file_exists $DATA_ARCH_PATH | ||
--exec unzip -qo $DATA_ARCH_PATH -d $MYSQL_TMP_DIR | ||
|
||
--let $restart_parameters = "restart: --loose-skip-log-bin --skip-log-slave-updates --datadir=$MYSQLD_DATADIR1 $ADDITIONAL_OPTS" | ||
--let $restart_hide_args = 1 | ||
--source include/start_mysqld.inc | ||
|
||
--echo # Execute mysql_upgrade | ||
--source include/mysql_upgrade_preparation.inc | ||
--exec $MYSQL_UPGRADE --skip-verbose --force 2>&1 | ||
--source include/mysql_upgrade_cleanup.inc | ||
|
||
--echo # Check test table after upgrade | ||
SHOW CREATE TABLE test.t1; | ||
SELECT * FROM test.t1 ORDER BY a; | ||
--source include/table_files_replace_pattern.inc | ||
--list_files $MYSQLD_DATADIR1/test/ | ||
|
||
--echo # Stop the server | ||
--source include/shutdown_mysqld.inc | ||
|
||
--let $restart_parameters = | ||
--let $restart_hide_args = | ||
|
||
--echo # Remove copied files | ||
--remove_file $DATA_ARCH_PATH | ||
--exec rm -rf $MYSQLD_DATADIR1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.