mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 15:31:55 +00:00
PT-2160 fix tests for pt online schema change (#602)
* PT-2160 - Fix tests for pt-online-schema-change Re-enabled tests after MySQL bug #89441 fix in 8.0.14 and later Updated t/pt-online-schema-change/samples/basic_no_fks_innodb.sql, so its unique index is NOT NULL Added synchonizations when tests are waiting for too long due to slave catch up Added innodb_directories option for t/pt-online-schema-change/pt-244.t * PT-2160 - Fix tests for pt-online-schema-change PT-2048 - pt-osc spans excessive connections to the replica when executing in the source t/pt-online-schema-change/slave_lag.t was failing due to PT-2048. I added code that reuses already created connections when checks for slave in the wait loop. It fixes slave_lag.t too. I also added that prints more detailed error when fails to connect to the replica. * PT-2160 - Fix tests for pt-online-schema-change Modified t/pt-online-schema-change/slave_lag.t, so it runs and clean ups faster. * PT-2160 - Fix tests for pt-online-schema-change Modified t/pt-online-schema-change/pt-1455.t, so it runs and clean ups faster. * PT-2160 - Fix tests for pt-online-schema-change Fixed search for HASH and BTREE keys broken by fix for PT-2123 Updated modules for pt-archiver Fixed die message for sandbox/start-sandbox Added global_grants table to list of exceptions for the ok function in lib/Sandbox.pm Added wait_for_slaves to bugs.t, so changes on the source are copied to replica before pt-osc starts working Updated PXC tests Added wait_for_slaves to pt-1455.t Fixed regular expression in pt-229.t, so it works with both 5.x and 8.0 versions Added innodb_directories option for pt-244.t, so it does not fail on 8.0 Modified slave_lag.t, so it is more stable and slow enough, so pt-osc can print message about delayed replicas
This commit is contained in:
@@ -459,7 +459,7 @@ test_alter_table(
|
||||
# Somewhat dangerous, but quick. Downside: table doesn't exist for a moment.
|
||||
|
||||
SKIP: {
|
||||
skip "MySQL error https://bugs.mysql.com/bug.php?id=89441", 2 if ($sandbox_version ge '8.0');
|
||||
skip "MySQL error https://bugs.mysql.com/bug.php?id=89441", 2 if ($sandbox_version ge '8.0' and VersionParser->new($master_dbh) le '8.0.14');
|
||||
|
||||
test_alter_table(
|
||||
name => "Basic FK drop_swap --dry-run",
|
||||
@@ -576,7 +576,7 @@ SKIP: {
|
||||
skip 'Sandbox master does not have the sakila database', 7
|
||||
unless @{$master_dbh->selectcol_arrayref("SHOW DATABASES LIKE 'sakila'")};
|
||||
|
||||
skip "MySQL error https://bugs.mysql.com/bug.php?id=89441", 2 if ($sandbox_version ge '8.0');
|
||||
skip "MySQL error https://bugs.mysql.com/bug.php?id=89441", 2 if ($sandbox_version ge '8.0' and VersionParser->new($master_dbh) le '8.0.14');
|
||||
|
||||
# This test will use the drop_swap method because the child tables
|
||||
# are large. To prove this, change check_fks to rebuild_constraints
|
||||
|
Reference in New Issue
Block a user