mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-23 04:25:43 +00:00

* 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
31 lines
648 B
SQL
31 lines
648 B
SQL
DROP DATABASE IF EXISTS pt_osc;
|
|
CREATE DATABASE pt_osc;
|
|
USE pt_osc;
|
|
CREATE TABLE t (
|
|
id int auto_increment primary key,
|
|
c char(32) not null,
|
|
d date,
|
|
unique index (c(32))
|
|
) ENGINE=InnoDB;
|
|
INSERT INTO pt_osc.t VALUES
|
|
(1, 'a', now()),
|
|
(2, 'b', now()),
|
|
(3, 'c', now()),
|
|
(4, 'd', now()),
|
|
(5, 'e', now()),
|
|
(6, 'f', now()),
|
|
(7, 'g', now()),
|
|
(8, 'h', now()),
|
|
(9, 'i', now()),
|
|
(10, 'j', now()), -- 10
|
|
(11, 'k', now()),
|
|
(12, 'l', now()),
|
|
(13, 'm', now()),
|
|
(14, 'n', now()),
|
|
(15, 'o', now()),
|
|
(16, 'p', now()),
|
|
(17, 'q', now()),
|
|
(18, 'r', now()),
|
|
(19, 's', now()),
|
|
(20, 't', now()); -- 20
|