Commit Graph

58 Commits

Author SHA1 Message Date
Viktor Szépe
2bd40d8c39 Remove trailing spaces (#665)
* Remove trailing spaces

* PR-665 -  Remove trailing spaces

- Updated not stable test t/pt-online-schema-change/preserve_triggers.t
- Updated utilities in bin directory

* PR-665 -  Remove trailing spaces

- Fixed typos

* PR-665 -  Remove trailing spaces

- Fixed typos

---------

Co-authored-by: Sveta Smirnova <sveta.smirnova@percona.com>
2023-09-06 01:15:12 +03:00
Viktor Szépe
ea67327ff7 Fix more typos (#658) 2023-08-22 19:34:24 +03:00
Sveta Smirnova
bfc00b93a8 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
2023-02-27 01:19:11 +03:00
Sveta Smirnova
a7efd8c94e PT-2138 - fix tests for pt table checksum (#568)
* PT-2138 - Fix tests for pt-table-checksum

- Updated t/pt-table-checksum/samples/default-results-8.0.txt and
t/pt-table-checksum/samples/static-chunk-size-results-8.0.txt
to support latest MySQL 8.0 version. Tests are now incompatible with elder 8.0 releases.
- Put fix for PT-136 into package RowChecksum
- Added execution bit for pt-online-schema-change

* PT-2138 - Fix tests for pt-table-checksum

- Fixed percona_test.load_data, so it really tests if LOAD DATA LOCAL INFILE is enabled
- Fixed option --[no]create-replicate-table, broken by commit c9836d5962

* PT-2138 - Fix tests for pt-table-checksum

- Enabled t/pt-table-checksum/error_handling.t for MySQL 8.0
- Fixed test t/pt-table-checksum/fnv_64.t and it's samples file
t/pt-table-checksum/samples/fnv64-sakila-city.txt
to reflect new function name convention and
changes after 62d84e5dba

* PT-2138 - Fix tests for pt-table-checksum

- Fixed t/pt-table-checksum/issue_1485195.t, so it checks only one table and
isn't get broken when we add tables into percona_test database
- Fixed typo in error output of bin/pt-table-checksum
- Skipped issue_47.t in 8.0 until https://jira.percona.com/browse/PT-1805 is fixed

* PT-2138 - Fix tests for pt-table-checksum

- Disabled pt-131.t for 8.0, because it does not have the QUERY_RESPONSE_TIME plugins
- Added SLOW_TESTS check to pt-1616.t
- Updated pt-226.t to include the fix for PT-1766
- For replication_filters.t: excluded false positive expression for tests 10 and 11 and added sys schema to the list of checked databases for 8.0
- Changed get_slaves in lib/MasterSlave.pm, so it returns slave's parent, required for wait_for_slaves in pt-table-checksum to work properly with chained slaves

* PT-2138 - Fix tests for pt-table-checksum

- Modified pt-204.t  to support 8.0 and diffs in system tables due to timestamps
Moved the fix for PT-1616 into the proper place: lib/NibbleIterator.pm

* PT-2138 - Fix tests for pt-table-checksum

- pxc.t -added mysql.proxies_priv into ignore list, because its timestamp is different on node
- pxc.t - removed FORK=pxc from statup options for slave (non-cluster) nodes
- pxc.t - disabled wsrep replication with help of the variable wsrep_on: sql_log_bin doesn't disable wsrep replication anymore. See https://jira.percona.com/browse/PXC-3464 for details
- Removed data.tar.gz from 5.7 sandbox configuration, because it has an outdated definition for Performance Schema
- Disabled pxc.t for version 8.0 until PT-1699 is fixed
- start-sandbox - removed the first line (ALTER USER) from the init file, because it was rewritten by the next echo command, and then repeated later.

* PT-2138 - Fix tests for pt-table-checksum

- Adopted issue_1485195.t and basics.t for MyRocks-enabled setup
- replication_filters.t - added sys schema to the list of expected schemas for 5.7 and 8.0
- issue_1485195.t - added checks for the existence of mysql.plugin, func, and proxies_priv tables
- added samples/pt-131-wipe.sql that uninstalls QRT plugin if it was earlier installed by this test
-adjusted return code in pt-204.t, because expected differences in mysql.proxies_priv

* Update lib/PerconaTest.pm

removed diagnostic code

Co-authored-by: Carlos Salguero <carlos.salguero@percona.com>

Co-authored-by: Carlos Salguero <carlos.salguero@percona.com>
2022-12-28 23:09:13 +03:00
Carlos Salguero
f4e7230bbd PT-1554 fixed sandbox script for gtid with 5.6 2018-05-30 00:26:20 -03:00
Carlos Salguero
ec25735ca4 PT-572 More tests fixed 2018-02-21 16:42:26 -03:00
Carlos Salguero
f3132d3cee WIP 2018-01-25 00:01:56 -03:00
Carlos Salguero
1d1c13fbcb WIP 2018-01-16 11:11:16 -03:00
Carlos Salguero
4b563ef714 WIP 2018-01-09 16:19:05 -03:00
Carlos Salguero
ba96aa79a8 PT-214 Added RocksDB section to pt-mysql-summary 2017-12-14 13:31:45 -03:00
Carlos Salguero
e794f06d2b Updated sandbox script to allow enabling TokuDB 2017-12-14 10:50:32 -03:00
Carlos Salguero
6742025dd0 PT-209 Check adding FKs to a RocksDB table 2017-11-13 16:07:12 -03:00
Carlos Salguero
a7ffe2e032 Fixed tests for pt-stalk 2017-04-13 11:41:08 -03:00
Carlos Salguero
2fe4afc9cf added --skip-check-slave-lag 2017-04-12 12:34:39 -03:00
Carlos Salguero
be971eeee5 PT-80 Collect replication slave information 2017-03-27 17:30:06 -03:00
Tomislav Plavcic
aca9567aa2 Small fix for PXC for IP address 2017-03-21 15:36:55 +01:00
Tomislav Plavcic
1fa01d783d Changes for test sandboxes for PXC - PT-107 2017-03-21 14:18:57 +01:00
Tomislav Plavcic
3825c7a7be Changes for running test with MariaDB 2017-03-13 16:47:51 +01:00
frank-cizmich
e9acc636e5 fixed sys schema in sandbox 2016-01-12 22:29:35 -03:00
frank-cizmich
b71d8fec09 added sys schema - modified mysql schema - tweaked upgrade option in start-sandbox 2016-01-03 20:18:54 -03:00
Frank Cizmich
58006a38db fixes pt-mysql-summary-fails-to-parse-wsrep_provider_options-1264580 2014-09-03 13:25:38 -03:00
Kenny Gryp
b3c6a0aac2 bail out when pt-slave-restart has gtid enabled and multiple replication threads are enabled 2014-04-30 16:53:04 +02:00
Kenny Gryp
129b150fff added basic gtid support to pt-slave-restart 2014-04-30 14:16:05 +02:00
Daniel Nichter
302a9a21a1 Add failing test in settings.t. Add EXTRA_DEFAULTS_FILE to start-sandbox so a sandbox can be started with any additional settings, like explicit_defaults_for_timestamp. 2013-06-25 18:18:29 -07:00
Daniel Nichter
e5e6b1d9b9 Fix pt-heartbeat/pxc.t. Exit early in test-env if wget fails. Add APP=FORK|mysql to start-sandbox so it too works around the pxc mysqld -V bug; add FORK=pxc to start_sandbox() calls. 2013-03-08 10:07:05 -08:00
vagrant
7db92dcaa4 Use mysqld -V --bind-address IP for PXC in start-standbox so the version is printed. 2013-03-07 16:39:07 -08:00
vagrant
664449b153 Do not 'REPLACE INTO percona_test.sentinel' in start-sandbox because it doesn't work with RBR. Fix pt-table-checksum/pxc.t re this, and make pt-osc/pxc.t better re this. 2013-03-07 13:17:01 -08:00
Brian Fraser
1283b5c8d0 Re-added comments to the skipped MariaDB warning in pt-osc, and ported back the changes to enable MariaDB sandboxes 2013-01-30 13:00:03 -03:00
Brian Fraser
49ddddd4f7 start-sandbox: Silence spurious grep warnings 2012-12-21 09:45:30 -03:00
Brian Fraser
42484ecd10 Merged mysql-5.6-test-fixes and resolved conflicts 2012-12-19 13:47:54 -03:00
Brian Fraser
6d01f5085b start-sandbox: If starting a cluster node that isn't the first one in the cluster, change the first's wsrep_cluster_address. This stops /tmp/12345/stop; /tmp/12345/start from creating a second cluster -- instead, it rejoins the original 2012-12-11 18:43:45 -03:00
Daniel Nichter
a672a1d98d Add QUERY_CACHE_SIZE to start-sandbox. Make t/pt-upgrade/warnings.t use 12349 instead of 12348, and start it with QUERY_CACHE_SIZE explicitly so MySQL 5.6.8 works. 2012-12-05 10:52:12 -07:00
Daniel Nichter
e7c3e908bb Create percona_test.sentinel in start-sandbox so wait_for_slave() works for other sandboxes. skip_all for skip_innodb.t with 5.6 because of http://bugs.mysql.com/67798. 2012-12-04 00:14:20 +00:00
Daniel Nichter
cb640e2cad Fix 5.6 data. Make start-sandbox load extra .sql files. Make ptc/basics.t pass on 5.6. 2012-12-03 21:08:42 +00:00
Daniel Nichter
d0bd80037e Don't use [[ ]] since it doesn't work on Ubuntu. 2012-12-01 21:08:11 +00:00
Daniel Nichter
c251c72eb3 Use good Bash in sandbox/start-sandbox. 2012-12-01 13:38:46 -07:00
Daniel Nichter
a71759640a Fix how start-sandbox looks for mysqld, broken by previous commit. 2012-11-16 12:08:49 -07:00
Daniel Nichter
3e687ec69a Make start-sandbox sed -e MYSQLD in the start script in case mysqld isn't in basedir/bin. 2012-11-16 12:04:47 -07:00
Brian Fraser fraserb@gmail.com
6771202be0 Merged sandbox-pxc-compat 2012-10-17 12:04:17 -03:00
Daniel Nichter
252de18574 Remove sys.sql handling from start-sandbox and rename sys.sql to innodb_stats.sql. 2012-10-16 12:37:29 -06:00
Daniel Nichter
628b5ba2b1 Add 5.6 sandbox. Fix start-sandbox so it doesn't s/PORT// in data files. Add loading sys.sql for InnoDB tables in mysql db. 2012-10-16 16:13:19 +01:00
Brian Fraser fraserb@gmail.com
4e833f3df3 Minimal PXC compat 2012-10-15 13:53:37 -03:00
Daniel Nichter
7e464dc3f8 Wait 1 minute to start and stop sandboxes. Report how long start/stop took. Clean up code. 2012-08-01 09:40:05 -06:00
Daniel Nichter
d19844b94c Debug when start-sandbox fails. 2012-07-31 17:15:55 -06:00
Brian Fraser
e9c9608c33 pt-archiver & tests: Deal with LOAD DATA LOCAL INFILE being disabled.
This occasionally shows up in some OSs, like Ubuntu 12.04 LTS.
2012-07-11 17:31:03 -03:00
Baron Schwartz
47fb3d65e8 Fix a bazillion tests with ANSI sql_mode, and get rid of a bunch of MySQLDump usage. 2012-06-09 14:43:33 -04:00
Baron Schwartz
b9304dabb5 Fix a number of SQL queries to work with ANSI_QUOTES 2012-06-06 23:14:20 -04:00
baron
52271eec9e prevent annoying error messages about unsigned thread_stack value blah blah 2012-06-06 21:30:15 -04:00
Baron Schwartz
81e31c67ff change default storage engine when disabling innodb 2012-06-04 10:08:27 -04:00
Baron Schwartz
2e6a2e3638 make start-sandbox succeed when there is a leftover sandbox already 2012-06-03 17:24:46 -04:00