Commit Graph

78 Commits

Author SHA1 Message Date
Sveta Smirnova
19baa34872 PT-2295 - Fix tests on distributions
- Fixed sporadic pt-tc failures on rolled back SHOW MASTER STATUS code
- Added better diagnostic info for sporadically failing t/pt-table-checksum/basics.t
- Decreased chunk size it t/pt-table-checksum/progress.t, so this test
  has less chances to fail, because pt-osc finishes faster than expected
2024-02-13 20:03:32 +03:00
Sveta Smirnova
50d08a46f2 PT-2295 - Fix tests on distributions
- Clean up in the beginning of t/pt-table-checksum/basics.t
2024-02-01 15:21:16 +03:00
Sveta Smirnova
25c969542b PT-2151 fix tests for pt-query-digest (#631)
* PT-2151 - Fix tests for pt-query-digest

Put fix for PT-1908 into the proper place

* PT-2151 - Fix tests for pt-query-digest

Put fix for PT-1554 into the proper place

* PT-2151 - Fix tests for pt-query-digest

Adjusted expected results for the default test t/pt-table-checksum/basics.t, so they do not depend on number of rows in the help tables

* PT-2151 - Fix tests for pt-query-digest

Added additional check for both replicas into t/pt-online-schema-change/preserve_triggers.t to avoid deadlock when ->ok() is doing CHECKSUM

* PT-2151 - Fix tests for pt-query-digest

Added delay to t/pt-table-sync/wait.t, so it waits for the child process to start lagging

* PT-2151 - Fix tests for pt-query-digest

Updated t/pt-query-digest/samples/issue_1196-output-8.0.txt, so it reflects changes in the latest 8.0

* PT-2151 - Fix tests for pt-query-digest

Updated queries against query history table, so they don't fail after e2cf183762

* PT-2151 - Fix tests for pt-query-digest

Fixed PT-813 by comparing query text. Since order itself does not matter, it is not essential to compare by the fingerprint or use any other function that changes the query.

* PT-2151 - Fix tests for pt-query-digest

Adjusted samples files which now should have consistent order after fix for PT-813

* PT-2151 - Fix tests for pt-query-digest

Fixed typo in the SELECT query in the QueryReview package

* PT-2151 - Fix tests for pt-query-digest

Fix for PT-981

* PT-2151 - Fix tests for pt-query-digest

Updated modules for pt-index-usage and fixed tests, because checksum is calculated differently after fix for PT-1554

* PT-2151 - Fix tests for pt-query-digest

Updated modules for pt-diskstats, pt-fk-error-logger, pt-heartbeat, pt-online-schema-change, pt-slave-delay, pt-slave-find, pt-table-checksum, pt-table-sync, pt-upgrade

* PT-2151 - Fix tests for pt-query-digest

Updated lib/IndexUsage.pm, so fix for pt-index-usage is in the correct place
2023-06-23 15:48:21 +03:00
Sveta Smirnova
642253ce52 PT-2156 Fix tests for lib (#606)
* PT-2156 - Fix tests for lib

- Fixed tests broken for lib/TableParser.pm after fix for PT-1059
- Updated tests for lib/TableParser.pm that are broken due to SHOW CREATE TABLE output format change in 8.0
- Updated modules for all tools that use lib/TableParser.pm

* Revert "Fixed pt-archiver tests"

This reverts commit a3ab87b12e.

This commit wa needed, because removed code in sandbox/slave_channels.sql broked the test. Proper fix would be to do not remove channel names rather than chaging the test. So revertig it.

* PT-2156 - Fix tests for lib

- Updated test t/lib/TableChecksum.t so it reflects changes, introduced in the fix for PT-2016
- Updated test t/lib/RowChecksum.t so it reflects changes added to in the fix for PT-2138: UTF8 support
- Uncommented SQL in sandbox/slave_channels.sql that made t/lib/MasterSlave.t to fail
- Added check for undef into t/pt-archiver/archive_using_channels.t
- Updated lib/Cxn.pm so it uses $dbh->{Active} after issue with the ping() call, reported at https://github.com/perl5-dbi/DBD-mysql/issues/306

* PT-2156 - Fix tests for lib

- Impoved the fix for PT-2016, so it does not files with keys with USING keyword
- Added brackets to expression in lib/TableNibbler.pm, so it does not crap query wit many indexes with OR keyword
- Adjusted test t/lib/TableNibbler.t, so it reflects above chages
- Modified lib/Cxn.pm, so it has workaround for https://github.com/perl5-dbi/DBD-mysql/issues/306 , introduced in DBD::mysql 4.0.50
- Updated tests: added debugging code and cleanups
- Updated modules for tools
2023-03-27 14:18:26 +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
d2c4f57a52 PT-1572 Updated tests 2018-07-28 16:08:27 -03:00
Carlos Salguero
c1d0134525 PT-1554 Made tests for table checksum reliable under MySQL 8 2018-06-20 15:23:04 -03:00
Carlos Salguero
d17ce01318 PT-118 Updated tests for basics.t 2018-05-07 14:20:30 -03:00
Carlos Salguero
51dcca5959 PT-572 Fixes for MySQL 8
- Updated sandbox data file
- Fixes for pt-upgrade since there is no query_cache in MySQL 8
- Updates for SchemaIterator since there are new/renamed tables in MySQL 8
- Disabled some tests due to errors in MySQL 8.0.4-rc
2018-02-01 11:30:12 -03:00
Carlos Salguero
99a17cd041 PT-207 Fixed tests 2017-12-16 11:28:03 -03:00
Carlos Salguero
3a62d1bdb4 PT-142 Fixed tests for MySQL 5.6 2017-05-23 16:38:06 -03:00
Carlos Salguero
e6e54839bf More tests for 5.7 fixed 2017-04-28 17:15:53 -03:00
Carlos Salguero
fcd1cb173f More 5.7 tests fixed 2017-04-27 16:44:46 -03:00
Carlos Salguero
92ac5987e1 Fixed some tests for MySQL 5.7 2017-04-25 16:50:54 -03:00
Carlos Salguero
3568cad229 PT-87 Added --skip-check-slave-lag to pt-table-checksum 2017-04-12 17:07:06 -03:00
Carlos Salguero
2b76371a4f PT-96 Fixed LOCAL DATA INFILE commands and JSON format 2017-03-10 17:06:20 -03:00
Carlos Salguero
00ea1b280e Fixes for pt-table-checksum tests 2017-01-23 14:10:54 -03:00
Carlos Salguero
9907cae8bb Updated test plan in t/pt-table-checksum/basics.t 2017-01-18 11:25:56 -03:00
frank-cizmich
a9e7a61f04 more format printf and GetOpt::Long fixes 2016-02-09 16:21:38 -03:00
frank-cizmich
b85379017e misc test fixes for pt-table-checksum 5.7 compat 2016-01-28 21:39:27 -03:00
frank-cizmich
8f8dc35075 removed couple of debugging leftovers 2016-01-12 18:07:49 -03:00
frank-cizmich
6433c99713 various 5.7 test and tool compatibility fixes 2015-12-24 09:49:17 -03:00
Frank Cizmich
ee5e46e08c disables only_full_group_by 2015-01-05 20:15:27 -02:00
Frank Cizmich
bcacd7e08a pt-table-checksum-PXC-inconsistent-results-upon-resume-1311654 2014-08-05 16:51:34 -03:00
Frank Cizmich
fa8254712b fixes pt-table-checksum-PXC-inconsistent-results-upon-resume-1311654 2014-07-17 17:50:37 -03:00
Frank Cizmich
d3044a1bec fixes pt-table-checksum and pt-osc rounding low max-load thresholds to same as starting value - issue 1253872 2014-07-11 13:39:25 -03:00
Frank Cizmich
1c1b3a9ac1 minor spelling correction 2014-07-06 21:43:50 -03:00
Daniel Nichter
4805b7b5c8 Note in docs: As of pt-table-checksum 2.2.5, skipped chunks cause a non-zero exit status. Also report skipped chunks due to lock wait timeout and killed query like other skipped chunks. Enhance explanation of SKIPPED column. 2013-10-10 12:21:39 -07:00
Daniel Nichter
cd29c0d7dc Make ptc exit status 0, 255, or a bitmask of flags for various problems. 2013-10-03 11:32:11 -07:00
Daniel Nichter
1d42a09196 Remove --lock-wait-timeout from pt-table-checksum; make innodb_lock_waitout=1 a --set-vars default. Update all the ptc tests. 2013-03-01 19:02:13 -07:00
Daniel Nichter
2ffe8737a4 Fix pt-table-checksum/basics.t test that was affected by bug 1087804, and test for bug 1087804. 2013-02-27 19:44:37 -07:00
Daniel Nichter
5bb577a75b Stablize the annoyingi pt-table-checksum/basics.t tests that always change by insignificant amounts anytime we change something with sandboxes. 2013-02-18 18:51:14 -07:00
Daniel Nichter
eb2585fb32 Various test fixes for MySQL 5.6.10 (which seems not to have mysql.hosts any longer). 2013-02-18 18:06:05 -07:00
Brian Fraser
d6a7bf0cdb Remove the @INC shifts from the test files. This is no longer needed since the tools do their %INC mangling 2012-11-21 13:58:40 -03:00
Daniel Nichter
b5c48f07d1 Remove unused $limit. Make $chunk_size_limit || 1 because it's the one used for #-of-rows check on slaves. Reverse the new test because we don't want to disable the #-of-rows check. 2012-10-31 12:12:51 -06:00
Brian Fraser fraserb@gmail.com
1e3cc6131c Fix for 938660: pt-table-checksum chunk-size-limit of 0 does not disable chunk size limit checking 2012-10-30 11:55:49 -03:00
Daniel Nichter
cc3826f665 Fix more test output broken by percona_test.load_data. Tweak ptc/t/privs.t so it passes on my box. Fix new start/stop scripts: don't check ibdata1 because SKIP_INNODB may be used. Make PerconaTest::output() cleaner. 2012-08-01 14:58:52 -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
Daniel Nichter
69ba6c4efd Reset nibble_time for each chunk. 2012-06-11 14:43:18 -04:00
Daniel Nichter
c9ace1b931 Failing test for SKIPPED if chunk # > 1. 2012-06-11 14:04:41 -04: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
Daniel Nichter
dac0731251 Remove PerconaTest::wait_for_table() after calls to Sandbox::load_file() which now implicitly calls Sandbox::wait_for_slaves(). 2012-06-07 10:25:44 -04:00
Brian Fraser fraserb@gmail.com
ed3d22ce38 t/pt-table-checksum/basics.t: Updated samples and tests 2012-06-06 18:38:13 -03:00
Daniel Nichter
03ebae4d3c Update pt-table-checksum/basics.t samples for percona_test.sentinel on MySQL 5.0. 2012-06-06 14:29:08 -07:00
Baron Schwartz
1a40d1301f Make sandbox servers log their actions, remove test-env reset from pt-table-checksum/basics.t to stop replication breakage 2012-06-06 00:57:19 -04:00
Daniel Nichter
b4c4c2c85e Fix pt-table-checksum/basics.t to work with new percona_test db. 2012-06-05 15:00:25 -07:00
Daniel Nichter
a44a273800 Revert back to ok() for Sandbox::ok() so tests file don't have to be updated. Shorten verify_test_data_integrity() to verify_test_data(). 2012-06-05 11:02:48 -07:00
Baron Schwartz
5c23b95072 magic to check that tests didn't muck with test dataset 2012-06-05 03:24:59 -04:00
Baron Schwartz
48fc1f82a7 Add version-specific results for mysql5.5 2012-06-04 12:04:16 -04:00
Daniel Nichter
4e90f65736 Make pt-table-checksum/relication_filters.t and progress.t stable. Add PerconaTest::wait_until_no_lag(). Fix sandbox/test-env reset. 2012-06-04 07:33:14 -07:00