-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-32216 add tests for mariadb-dump --parallel
- --parallel=N with or without --single-transaction - Error cases (too many connections, emulate error on one connection) - Windows specific test for named pipe connections
- Loading branch information
Showing
8 changed files
with
77 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set @save_debug_dbug=@@global.debug_dbug; | ||
set global debug_dbug='+d,select_export_kill'; | ||
mariadb-dump: Couldn't execute async query 'SELECT /*!40001 SQL_NO_CACHE */ `Host`, `User`, `Priv` INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/global_priv.txt' /*!50138 CHARACTER SET binary */ FROM `mysql`.`global_priv`' (Query execution was interrupted) | ||
set global debug_dbug=@save_debug_dbug; |
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,15 @@ | ||
--source include/have_debug.inc | ||
--source include/not_embedded.inc | ||
# need to dump "mysql" schema | ||
--source include/have_innodb.inc | ||
|
||
# inject error on SELECT INTO OUTFILE | ||
set @save_debug_dbug=@@global.debug_dbug; | ||
set global debug_dbug='+d,select_export_kill'; | ||
# This one succeeds | ||
--replace_result .\exe '' $MYSQLTEST_VARDIR MYSQLTEST_VARDIR | ||
--error 2 | ||
--exec $MYSQL_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ --parallel=2 mysql global_priv 2>&1 | ||
|
||
set global debug_dbug=@save_debug_dbug; | ||
|
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 @@ | ||
--loose-enable-named-pipe |
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,9 @@ | ||
# Test mysqldump specific features (pipe connection, with parallel) | ||
CREATE TABLE t1 (i INT); | ||
INSERT INTO t1 VALUES(1); | ||
DROP TABLE t1; | ||
test.t1: Records: 1 Deleted: 0 Skipped: 0 Warnings: 0 | ||
SELECT * FROM t1; | ||
i | ||
1 | ||
DROP TABLE t1; |
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,14 @@ | ||
--source include/windows.inc | ||
--source include/not_embedded.inc | ||
|
||
--echo # Test mysqldump specific features (pipe connection, with parallel) | ||
CREATE TABLE t1 (i INT); | ||
INSERT INTO t1 VALUES(1); | ||
|
||
--exec $MYSQL_DUMP --host=. --tab=$MYSQLTEST_VARDIR/tmp/ test --parallel=2 | ||
DROP TABLE t1; | ||
--exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/t1.sql | ||
--exec $MYSQL_IMPORT test $MYSQLTEST_VARDIR/tmp/t1.txt | ||
SELECT * FROM t1; | ||
DROP TABLE t1; | ||
|
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
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