Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-15409 make sure every sst script is tested in buildbot
galera SST tests have a debug part, but we don't want to limit them
to fulltest2 builder. So, add support for test files that
have a debug part:
* add maybe_debug.inc and maybe_debug.combinations
* 'debug' combination is run when debug is available
* 'release' combination is run otherwise
* test wraps debug parts in if($with_debug) { ... }
* and creates ,debug.rdiff for debug results- Loading branch information
Showing
12 changed files
with
429 additions
and
388 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| [debug] | ||
| --enable-gdb | ||
|
|
||
| [release] | ||
| --disable-gdb |
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,3 @@ | ||
| # include file for test files that can be run with and without debug | ||
| # having debug and non-debug tests. | ||
| let $have_debug=`select version() like '%debug%'`; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| --- galera_sst_mariabackup.reject | ||
| +++ galera_sst_mariabackup.result | ||
| @@ -260,3 +260,100 @@ | ||
| DROP TABLE t1; | ||
| COMMIT; | ||
| SET AUTOCOMMIT=ON; | ||
| +Performing State Transfer on a server that has been killed and restarted | ||
| +while a DDL was in progress on it | ||
| +CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB; | ||
| +SET AUTOCOMMIT=OFF; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 VALUES ('node1_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node1_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node1_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node1_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node1_committed_before'); | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 VALUES ('node2_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node2_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node2_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node2_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node2_committed_before'); | ||
| +COMMIT; | ||
| +SET GLOBAL debug_dbug = 'd,sync.alter_opened_table'; | ||
| +ALTER TABLE t1 ADD COLUMN f2 INTEGER; | ||
| +SET wsrep_sync_wait = 0; | ||
| +Killing server ... | ||
| +SET AUTOCOMMIT=OFF; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
| +COMMIT; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +SET AUTOCOMMIT=OFF; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +Performing --wsrep-recover ... | ||
| +Starting server ... | ||
| +Using --wsrep-start-position when starting mysqld ... | ||
| +SET AUTOCOMMIT=OFF; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
| +COMMIT; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +COMMIT; | ||
| +SET AUTOCOMMIT=OFF; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
| +COMMIT; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +ROLLBACK; | ||
| +SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1'; | ||
| +COUNT(*) = 2 | ||
| +1 | ||
| +SELECT COUNT(*) = 35 FROM t1; | ||
| +COUNT(*) = 35 | ||
| +1 | ||
| +SELECT COUNT(*) = 0 FROM (SELECT COUNT(*) AS c, f1 FROM t1 GROUP BY f1 HAVING c NOT IN (5, 10)) AS a1; | ||
| +COUNT(*) = 0 | ||
| +1 | ||
| +COMMIT; | ||
| +SET AUTOCOMMIT=ON; | ||
| +SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1'; | ||
| +COUNT(*) = 2 | ||
| +1 | ||
| +SELECT COUNT(*) = 35 FROM t1; | ||
| +COUNT(*) = 35 | ||
| +1 | ||
| +SELECT COUNT(*) = 0 FROM (SELECT COUNT(*) AS c, f1 FROM t1 GROUP BY f1 HAVING c NOT IN (5, 10)) AS a1; | ||
| +COUNT(*) = 0 | ||
| +1 | ||
| +DROP TABLE t1; | ||
| +COMMIT; | ||
| +SET AUTOCOMMIT=ON; | ||
| +SET GLOBAL debug_dbug = $debug_orig; |
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 |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| --- galera_sst_mysqldump.reject | ||
| +++ galera_sst_mysqldump.result | ||
| @@ -354,6 +354,103 @@ | ||
| DROP TABLE t1; | ||
| COMMIT; | ||
| SET AUTOCOMMIT=ON; | ||
| +Performing State Transfer on a server that has been killed and restarted | ||
| +while a DDL was in progress on it | ||
| +CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB; | ||
| +SET AUTOCOMMIT=OFF; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 VALUES ('node1_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node1_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node1_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node1_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node1_committed_before'); | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 VALUES ('node2_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node2_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node2_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node2_committed_before'); | ||
| +INSERT INTO t1 VALUES ('node2_committed_before'); | ||
| +COMMIT; | ||
| +SET GLOBAL debug_dbug = 'd,sync.alter_opened_table'; | ||
| +ALTER TABLE t1 ADD COLUMN f2 INTEGER; | ||
| +SET wsrep_sync_wait = 0; | ||
| +Killing server ... | ||
| +SET AUTOCOMMIT=OFF; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_during'); | ||
| +COMMIT; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +SET AUTOCOMMIT=OFF; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +Performing --wsrep-recover ... | ||
| +Starting server ... | ||
| +Using --wsrep-start-position when starting mysqld ... | ||
| +SET AUTOCOMMIT=OFF; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node2_committed_after'); | ||
| +COMMIT; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after'); | ||
| +COMMIT; | ||
| +SET AUTOCOMMIT=OFF; | ||
| +START TRANSACTION; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_committed_after'); | ||
| +COMMIT; | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after'); | ||
| +ROLLBACK; | ||
| +SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1'; | ||
| +COUNT(*) = 2 | ||
| +1 | ||
| +SELECT COUNT(*) = 35 FROM t1; | ||
| +COUNT(*) = 35 | ||
| +1 | ||
| +SELECT COUNT(*) = 0 FROM (SELECT COUNT(*) AS c, f1 FROM t1 GROUP BY f1 HAVING c NOT IN (5, 10)) AS a1; | ||
| +COUNT(*) = 0 | ||
| +1 | ||
| +COMMIT; | ||
| +SET AUTOCOMMIT=ON; | ||
| +SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1'; | ||
| +COUNT(*) = 2 | ||
| +1 | ||
| +SELECT COUNT(*) = 35 FROM t1; | ||
| +COUNT(*) = 35 | ||
| +1 | ||
| +SELECT COUNT(*) = 0 FROM (SELECT COUNT(*) AS c, f1 FROM t1 GROUP BY f1 HAVING c NOT IN (5, 10)) AS a1; | ||
| +COUNT(*) = 0 | ||
| +1 | ||
| +DROP TABLE t1; | ||
| +COMMIT; | ||
| +SET AUTOCOMMIT=ON; | ||
| +SET GLOBAL debug_dbug = $debug_orig; | ||
| CALL mtr.add_suppression("Slave SQL: Error 'The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement' on query"); | ||
| DROP USER sst; | ||
| CALL mtr.add_suppression("Slave SQL: Error 'The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement' on query"); |
Oops, something went wrong.