Commit Graph

42 Commits

Author SHA1 Message Date
Sveta Smirnova
76c1202cb5 PT-2340 - Support MySQL 8.4
- Updated modules and tests for pt-online-schema-change
- Removed typo from lib/MasterSlave.pm
2024-07-30 18:20:50 +03:00
Sveta Smirnova
3d4751f428 PR-388 - Check undefined skip check slave lag schema change
- Merge branch '3.x' into HEAD
- Improve the fix, so it does not fail when $slave_to_skip->{P} is not
  defined while $slave->{dsn}->{P} is defined
- Improve the fix for pt-table-checksum (PR-230)
- Added test cases for this fix for pt-table-checksum and pt-osc
- Adjusted replica info repository options in test for pt-1760.t, so it
  does not break regression tests for pt-osc on 5.7
2023-11-08 19:42:35 +03:00
Sveta Smirnova
9755074cd8 PT-2156 Fix tests for lib, part2 (#650)
* PT-2156 - Fix tests for lib

Fixed tests, broken by putting fix for PT-1554 into the library code, mostly by updating checksums.
Added AutoCommit option for test lib/QueryReview.t
Reset SQL mode to empty to allow TableChunker to work with invalid and zero dates

* PT-2156 - Fix tests for lib

Adjusted t/lib/SchemaIterator.t to work with version 8.0

* PT-2156 - Fix tests for lib

Adjusted b/t/lib/Processlist.t, so it reflects fix for PT-981

* PT-2156 - Fix tests for lib

Adjusted t/lib/HTTP/Micro.t, so it works with different order of parameters, returned at v.percona.com/
Adjusted test for empty files in t/lib/bash/collect.t
Disabled mysqladmin debug test in t/lib/bash/collect.t, because of PT-2242

* PT-2156 - Fix tests for lib

Added LC_NUMERRIC=POSIX into t/lib/bash/report_system_info.sh, so reports in tests are not environment-dependent
Updated expected results in t/lib/bash/report_system_info.sh, so they reflect new information, collected by pt-summary

* PT-2156 - Fix tests for lib

- Improved fix for PT-76, so it handles inline comments
- Added test case for PT-76
- Improved fix for PT-1720, so it ignores unrecognizable option only if it comes from the toolkit-wide files and still errors out if wrong option was passed via command line or the tool-specific option file.

* PT-2156 - Fix tests for lib

- Improved fix for PT-2102, so it finds running instance configuration file using PID and also does not break t/lib/bash/report_mysql_info.t test
- Removed unnecessary copy-paste from t/pt-mysql-summary/pt-2102.t test
- Adjusted number of collected files in t/lib/bash/collect_mysql_info.sh

* PT-2156 - Fix tests for lib

- Fix for PT-1543 and MyRocks collection were originally put only into lib/bash/report_mysql_info.shthat broke the logic of collecting data first, then formatting report from this data. This, in its turn, broke test t/lib/bash/report_mysql_info.sh/t/lib/bash/report_mysql_info.t, because CMD_MYSQL is not defined in this library. I rewrote these fixes, so they follow original logic of the tool (pt-mysql-summary)
- Added tests for keyring plugin, encrypted tables, and MyRocks for t/lib/bash/report_mysql_info.sh and t/pt-mysql-summary/pt-mysql-summary_encryption.t

* PT-2156 - Fix tests for lib

- Added FLUSH TABLES to t/lib/bash/collect.sh, so it does not fail opentables tests if run when more than 1000 tables open in the sandbox environment
- Changed number of expected sample files to reflect keyring colletion file

* PT-2156 - Fix tests for lib

- Added skip to some tests in lib that file when run with PXC, because not supported to work with PXC
- Adjusted configuration files for PXC, so they allow LOAD DATA/SELECT INTO OUTFILE commands
- Adjusted data samples, so they do not depend on auto increment values
- Fixed lib tests, failing with PXC

* PT-2156 - Fix tests for lib

Updated tests for pt-online-schema-change, so they work with PXC and skipped if designed for semi-synchronous replication setup

* PT-2156 - Fix tests for lib

- Added cluster-specific samples for t/lib/SchemaIterator.t
- Removed extra debugging print from t/pt-table-checksum/pt-1728.t

* PT-2156 - Fix tests for lib

Evgeniy's review on July 20

* Update t/lib/TableSyncer.t

Removed comment left after debugging

* Update t/pt-mysql-summary/pt-mysql-summary_encryption.t

Removed extra debug output

* PT-2156 - Fix tests for lib

Tabs to spaces
2023-08-02 14:50:21 +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
yoku0825
cceb48619f Use full_output to avoid to die (PT-1967) (#494) 2022-09-28 02:55:30 +03:00
Carlos Salguero
e8d8b39fc3 Merge branch '3.0' into PT-142 2017-05-23 15:19:33 -03:00
Carlos Salguero
109af35a49 PT-126 Recognize comments having quotes 2017-05-16 13:53:49 -03:00
Carlos Salguero
81f4ff4752 PT-142 pt-online-schema-change find_child_tables slow 2017-05-15 22:01:22 -03:00
Carlos Salguero
34d0ca7184 PT-126 Recognize comments in ALTER 2017-04-13 17:10:01 -03:00
Carlos Salguero
d4ceab4afd Merge branch '3.0' into PT-87 2017-04-12 17:09:27 -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
e234a6e99d PT-86 Added --skip-check-slave-lag to pt-osc 2017-03-30 14:23:09 -03:00
Carlos Salguero
d24b5845ee Added test for bug-1613915 pt-online-schema-change 2016-08-21 22:10:09 -03:00
frank-cizmich
3f90f9ea82 pt-osc generate random table prefix after 10th try 2016-02-26 21:03:18 -03:00
frank-cizmich
7c0054fa5d DSNParser clobbered sql_mode variable set by user - lp1506748 2016-02-01 22:51:55 -03:00
frank-cizmich
b40469d913 pt-osc added --null-to-not-null option 2016-01-26 21:29:18 -03:00
frank-cizmich
0c18e8969b pt-osc fixed several test files for 5.7 compat 2015-12-30 16:08:00 -03:00
frank-cizmich
703f803ae6 pt-osc modified some comments 2015-07-24 11:28:27 -03:00
frank-cizmich
2e72b47e85 pt-osc avoid error loop - lp 1446928 2015-06-11 15:44:57 -03:00
Frank Cizmich
e8d7feff61 used output instead of full_output. merged bug tests into bugs.t 2014-08-05 12:49:53 -03:00
Frank Cizmich
2c7240bf49 Skipped another plan check. Skipped running explain when unnecessary. Added test. Fixed test that set check-plan off by default 2014-07-31 16:41:15 -03:00
Daniel Nichter
8584f3b734 Fix call to undefined get() by removing it and simplifying the warning message. 2013-06-26 13:28:27 -07:00
Daniel Nichter
def86634f8 Add failing test case. 2013-06-26 13:17:01 -07:00
Daniel Nichter
57f35b22b3 Test that new table inherits the old table's charset. Clean up bugs.t. 2013-06-26 10:14:46 -07:00
Daniel Nichter
f0b7712528 Fix tests to work with new --set-vars, and change --lock-wait-timeout to --set-vars innodb_lock_wait_timeout in tests. 2013-03-02 10:17:23 -07:00
Daniel Nichter
c6958b497d First working enhanced --set-vars in pt-osc: no "default: ...", instead default values are under MAGIC_set_vars, picked up by OptionParser and passed to DSNParser. Also increaes --retries from 3 to 10. TODO: more testing. 2013-02-27 18:47:00 -07:00
Daniel Nichter
680477ed58 Add 'DROP PRIMARY KEY' to --check-alter. 2013-01-29 18:16:38 -07:00
Daniel Nichter
7ec6abd684 Fall back to using pk/ui from orig table if new table del index uses cols that no longer exist in orig table. 2013-01-29 17:51:43 -07:00
Daniel Nichter
b41ae476ae Only use LOCK IN SHARE MODE with MySQL 5.1+. 2012-12-11 16:54:24 +00:00
Daniel Nichter
ddda26fb7f Merged fix-i26211-1058285-821722-implicit-ansi_quotes 2012-11-05 10:57:11 -07:00
Daniel Nichter
949cf31037 Set sql_mode='' before SHOW CREATE TABLE--don't bother with replacing certain values. Move and rewrite tests to ansi_quotes.t. 2012-11-01 11:31:31 -06:00
Brian Fraser
2bcc380c68 Fix for customer issue 26211 ($avg_rate might be zero), plus a fix for bug 1058285 (also related to 26211), and an emergent part of 821722: Several sql_modes implicitly turn on ANSI_QUOTES 2012-10-17 15:52:15 -03:00
Daniel Nichter
77485efdbc Use new tbl indexes to create delete trigger. 2012-10-11 15:20:53 -06:00
Brian Fraser
8626c07a99 Fix for 1041372: pt-osc and long table names 2012-08-30 18:39:53 -03:00
Brian Fraser fraserb@gmail.com
b5191a310a Fixes as per Daniel's review; Removed the --quiet usage inpt-osc's nibble_is_safe, as it was ptc cruft 2012-07-31 13:33:30 -03:00
Brian Fraser fraserb@gmail.com
62c74e1e76 Previous commit left an unfinished comment 2012-07-30 19:08:37 -03:00
Brian Fraser fraserb@gmail.com
1de45b70be pt-osc: Change --quiet back and remove the quietness checks 2012-07-30 18:35:24 -03:00
Brian Fraser fraserb@gmail.com
ba2ddf682b Changed all the pt-osc tests to use full_output, since output uses eval {} 2012-06-07 17:46:19 -03:00
Daniel Nichter
bdbb66d22b Re-add calls to Sandbox::ok(). 2012-06-03 13:54:32 -04:00
Brian Fraser fraserb@gmail.com
8e04e3df60 Fix for 1003315: dry-run + alter-fk-method = auto always fail. 2012-05-30 14:27:07 -03:00
Brian Fraser fraserb@gmail.com
56d3d9a3b5 Fix for 1002448 2012-05-27 23:18:50 -03:00
Daniel Nichter
9967739fa4 Update NibbleIterator in pt-osc to fix it choosing the wrong index instead of the PK; add bugs.t to test this. 2012-05-16 10:04:52 -06:00