Commit Graph

184 Commits

Author SHA1 Message Date
Sveta Smirnova
5100e9b1aa PT-191 - add ssl options to DSN
- Updated ssl tests, so they test option --mysql_ssl and DSN
2025-07-30 17:18:38 +03:00
Sveta Smirnova
2954d5a749 PT-191 - add ssl options to DSN
- Typo in t/pt-index-usage/ssl.t
- Missed test t/pt-query-digest/ssl.t
- Missed option --mysql_ssl in pt-query-digest
2025-07-28 19:05:00 +03:00
Sveta Smirnova
ef2dbd887f PT-2129 - pt-online-schem-change and other tools fail on non-readable version check file
- Implemented fix in lib/VersionCheck.pm
- Updated modules in all tools
- Added test case to t/pt-query-digest/version_check.t
2025-03-29 23:22:44 +03:00
Sveta Smirnova
d02355f89b PT-2340 - Support MySQL 8.4
- Updated modules and tests for pt-query-digest, pt-show-grants, pt-slave-delay, pt-slave-find, pt-slave-restart, pt-stalk, pt-summary, pt-table-checksum
2024-08-03 14:24:10 +03:00
Sveta Smirnova
1774b856be PT-2264 - pt-query-digest Pipeline process 11 (--output slowlog) caused an error: Wide character
- Skipped test for versions before 8.0
2024-05-30 03:48:14 +03:00
Sveta Smirnova
a8258bf784 PR-471 - Support adding explain output for slow query in JSON report as well
- Removed paths from my laptop from tests
2024-05-25 15:04:11 +03:00
Sveta Smirnova
37ca3d2d49 PT-1205 - LP #1275034: pt-table-sync reports 'wide character in print' and terminates
- Added binmode :utf8 for STDERR
- Added test case for PT-1205
- Run update-modules
2024-03-22 01:42:14 +03:00
Sveta Smirnova
1ad44e04da PT-2264 - pt-query-digest Pipeline process 11 (--output slowlog) caused an error: Wide character
- Updated lib/DSNParser.pm, so it sets binmode to character set utf8 since
  MySQL 8.0 if character set is not specified in the DSN
- Added test case
- Run update-modules
2024-03-21 13:01:03 +03:00
Sveta Smirnova
9819736156 PT-2295 - Fix tests on distributions
- disabled test 'Single column int key' in 8.0.35+ until
  https://bugs.mysql.com/bug.php?id=113892 is fixed
- Fixed data for 'Two column int key' test
2024-02-13 20:03:32 +03:00
Sveta Smirnova
17820dbf23 PR-471 - Support adding explain output for slow query in JSON report as well
- Put fix into the proper place
- Added test cases
2023-11-06 17:21:28 +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
Carlos Salguero
9d6508da5f PT-1900 pt-query-digest not hiding parameter properly sometimes when parameter=binary (#510)
* PT-1900 WIP

* Fixed quoted strings regexes

* PT-1900 Fixed query rewriter to properly handle quoted text

* Fixed merge conflicts with 3.x branch
2021-09-27 08:23:23 -03:00
Carlos Salguero
b716d128c0 PT-1908 Increased query id column size in report (#472) 2020-11-17 12:09:19 -03:00
Carlos Salguero
9190b5e6ac Tests passed with MySQL 5.7 2019-09-03 15:26:26 -03:00
Carlos Salguero
df20b8af28 PT 3.0.12 fixes tests 2018-09-10 16:31:01 -03:00
Carlos Salguero
f95d448e03 PT-1554 Updated pt-query-digest to use a proper checksum
Now, the checksum field is a CHAR(32) instead of a BIGINT.

Previously it was failing on some MySQL versions since the truncated int
it was storing is not consistent. Now, by having an MD5 stored as a
CHAR(32) the checksum is consistent across MySQL and OS versions.

This is a breaking change and pt-query-digest history and review tables
are not backwards compatible.
2018-06-13 11:25:47 -03:00
Carlos Salguero
81582f3ce3 PT-1554 Fixed test for pt-query-digest + MySQL 8 2018-06-01 09:35:09 -03:00
Carlos Salguero
4bfca1ac00 PT-1554 Fixed digest tests for 5.6 2018-05-30 00:28:46 -03:00
Carlos Salguero
b345824169 PT-1554 Updated all tests for query-digest checksums 2018-05-24 20:29:11 -03:00
Carlos Salguero
e2cf183762 PT-1554 Updated pt-table-checksum var type
In different OSes, using BIGINT to store the checksum for a query, will
produce collisions and/or unstable values.
Because of this, I changed the type for the checksum field in the history
table from BIGINT to CHAR(32) and the checksum function is no longer
truncating the MD5_HEX result to 16 chars.
2018-05-24 15:57:21 -03:00
Carlos Salguero
285588546d PT-1554 Test a fix for query-digest checksums 2018-05-24 15:46:46 -03:00
Carlos Salguero
dc5491e13e PT-1554 Tests query digest history 2018-05-24 14:36:36 -03:00
Carlos Salguero
09cd07f58e PT-1554 Make QueryFormater consistent
In some OSes/Perl versions, the 'filtered' row is being printed with or
without decimals.
For example, in Ubuntu 16.04/Perl 5.22 it is 100.00 while in Ubuntu
18.04/Perl 5.26 it is 100.
To make it consistent for tests, add a default formating string for the
filtered row.
2018-05-23 15:28:28 -03:00
Carlos Salguero
a48a767eb4 PT-243 added --max-hostname-length & max-line-length to pt-query-digest 2018-03-27 14:23:59 -03:00
Carlos Salguero
6b35587fbe Updated tests for pt-query-digest/explain.t 2018-01-22 16:37:01 -03:00
Carlos Salguero
2f218ca2bb Fixes for collect_and_report_cycles.t 2018-01-22 16:29:41 -03:00
Carlos Salguero
045c656839 Fixes for MasterSlave.pm 2018-01-22 16:27:36 -03:00
Carlos Salguero
3d70ae3d12 Fixed tests for pt-query-digest reports 2018-01-18 12:55:47 -03:00
Carlos Salguero
56f5202dbf WIP MySQL 8 support 2018-01-18 12:47:38 -03:00
Carlos Salguero
e1275a6c67 PT-234 Fixed general log parser for timestamps having timezone 2017-12-19 12:50:35 -03:00
Carlos Salguero
f6d2e89027 Fixed all tests for MySQL 5.7
Most of the failing tests were failing due to changes in MySQL 5.7
default sql_mode and because of invalid timestamps ('0000-00-00')
2017-05-03 15:48:11 -03:00
Carlos Salguero
fcd1cb173f More 5.7 tests fixed 2017-04-27 16:44:46 -03:00
Carlos Salguero
a6c55737f5 Updated tests & 5.7 sandbox files 2017-04-27 12:06:43 -03:00
Carlos Salguero
93970c00e6 Fixed json tetsts for pt-query-digest 2017-03-17 18:10:04 -03:00
Carlos Salguero
43ecebb7c6 More tests fixed 2017-03-17 16:31:51 -03:00
Carlos Salguero
bf2061310e Fixed json tetsts for pt-query-digest 2017-03-17 16:14:45 -03:00
Carlos Salguero
492e432f7a fixed tests for query-dijest json 2017-01-16 16:13:42 -03:00
Carlos Salguero
cec5e1f494 Updated tests for pt-query-digest 2017-01-16 15:02:05 -03:00
Carlos Salguero
a96356c879 Fixed MySQLProtocol parser (v4.1 enhacements) 2016-12-16 22:38:15 -03:00
Carlos Salguero
154a3ffa96 bug-1604834 Removed unused test 2016-10-03 19:26:48 -03:00
Carlos Salguero
c5e3d44faf bug-1604834 Added tests for --preserve-embedded-numbers 2016-10-03 19:22:46 -03:00
Carlos Salguero
2b5e82c27c Added --preserve-embedded-numbers. Still nedd to add tests 2016-08-23 12:59:54 -03:00
frank-cizmich
500c3ed199 pt-query-digest changed default attribute-value-limit to disabled 2016-06-14 14:31:37 -03:00
Frank Cizmich
5cc70d2b36 Merge pull request #95 from percona/bug-1402776
Bug-1402776
2016-06-13 16:15:57 -03:00
Carlos Salguero
78aa8c436e bug-1402776 Added test 2016-06-09 15:05:26 -03:00
Carlos Salguero
3313913fa7 BUG-1585412 Fixed Date parsing regex for MySQL 5.7
MySQL 5.7 general log dates are in RFC3339 format:
2006-01-02T15:04:05Z07:00
The previous version of the log parser was not able to parse
this format.
2016-06-08 17:11:36 -03:00
Frank Cizmich
e99bf0978e Merge pull request #61 from percona/pt-query-digest-no-vertical-format-PT-24
pt-query-digest - allow no-vertical-format option for mysql clients that don't support it
2016-03-16 17:39:30 -03:00
frank-cizmich
6f97a5c7ca test uses float without integer part 2016-02-08 15:04:02 -03:00
frank-cizmich
96aff694b1 fixed 5.7 tests for pt-query-digest and pt-show-grants and tweaked SqlMode for global 2016-01-12 18:18:59 -03:00
frank-cizmich
9f81fa5c4a allow no-vertical-format option for mysql clients that dont support it 2015-12-06 19:14:06 -03:00