Commit Graph

84 Commits

Author SHA1 Message Date
Sveta Smirnova
798eaaa208 PT-2123 wide character in print for pt archiver (#583)
* PT-2123 pt-archiver gives error "Wide character in print at /usr/bin/pt-archiver line 6815" when using --bulk-insert while using character set alias

Added check if source DSN has character set UTF specified while option --charset is not provided
In this case it is safe to open bulk insert data file in utf8 mode.

* PT-2123 pt-archiver gives error "Wide character in print at /usr/bin/pt-archiver line 6815" when using --bulk-insert while using character set alias

Removed unrelated row in t/pt-archiver/samples/pt-2123.sql

* PT-2123 pt-archiver gives error "Wide character in print at /usr/bin/pt-archiver line 6815" when using --bulk-insert while using character set alias

util/update-modules for pt-archiver
2023-02-07 18:00:32 +03:00
Sveta Smirnova
01de987154 PT-2141 fix tests for pt-archiver (#581)
* PT-2141 Fix tests for pt-archiver

Fixed tests t/pt-archiver/bulk_insert.t, t/pt-archiver/issue_1225.t, t/pt-archiver/issue_1229.t
Their failures were due to change of utf8 alias from utf8mb3 in MySQL 5.7 to utf8mb4 in MySQL 8.0.
And also due to character set match check between connection ad source table.

* PT-2141 Fix tests for pt-archiver

Removed test for PT-1898, because it was broken from the beginning:
- it called pt-online-schema-change instead of pt-archiver
- it announced it will run 6 tests while was running only 2
- the test case itself did not test the issue, described in PT-1898
2023-02-02 17:09:34 +03:00
Sveta Smirnova
2f584c85db PT-2140 - Update modules in the main branch (#570)
* PT-2140 - Update modules in the main branch

Updated modules for:
- pt-align
- pt-archiver
- pt-config-diff
- pt-deadlock-logger
- pt-diskstats
- pt-duplicate-key-checker
- pt-fifo-split
- pt-find
- pt-fingerprint
- pt-fk-error-logger
- pt-heartbeat
- pt-index-usage
- pt-ioprofile
- pt-kill
- pt-mext
- pt-mysql-summary
- pt-online-schema-change
- pt-pmp
- pt-query-digest
- pt-show-grants
- pt-sift
- pt-slave-delay
- pt-slave-find
- pt-slave-restart
- pt-summary
- pt-table-sync
- pt-upgrade
- pt-variable-advisor

Added execute bit for pt-query-digest

* PT-2140 Update modules in the main branch

Fixed Daemon.pm plugin usage
Updated all tests, related to the Daemon plugin.
I intentionally did not fix failing tests, not related to Daemon plugin,
to avoid making this PR too big.

- bin/pt-archiver
	- PT-2141 - Fixed usage of Daemon.pm
	- PT-2141 - Updated t/pt-archiver/standard_options.t
- bin/pt-deadlock-logger
	- PT-2143 - Fixed usage of Daemon.pm
	- PT-2143 - Updated t/pt-deadlock-logger/standard_options.t
- bin/pt-fifo-split
	- PT-2144 - Fixed usage of Daemon.pm
	- PT-2144 - Updated t/pt-fifo-split/pt-fifo-split.t
- bin/pt-find
	- PT-2145 - Fixed usage of Daemon.pm
	- PT-2145 - Updated t/pt-find/pt-find.t
- bin/pt-fk-error-logger
	- PT-2146 - Fixed usage of Daemon.pm
	- PT-2146 - Updated t/pt-fk-error-logger/basics.t
- bin/pt-heartbeat
	- PT-2147 - Fixed usage of Daemon.pm
	- PT-2147 - Updated t/pt-heartbeat/standard_options.t, t/pt-heartbeat/basics.t
- bin/pt-kill
	- PT-2148 - Fixed usage of Daemon.pm
	- PT-2148 - Updated t/pt-kill/standard_options.t
- bin/pt-show-grants
	- PT-2152 - Fixed usage of Daemon.pm
	- PT-2152 - Updated t/pt-show-grants/standard_options.t
- bin/pt-slave-delay
	- Fixed usage of Daemon.pm
	- Updated t/pt-slave-delay/standard_options.t
- bin/pt-slave-find
	- PT-2153 - Fixed usage of Daemon.pm
	- PT-2153 -Updated t/pt-slave-find/pt-slave-find.t
- bin/pt-slave-restart
	- Fixed usage of Daemon.pm
	- Updated t/pt-slave-restart/pt-slave-restart.t
- bin/pt-table-sync
	- PT-2154 - Fixed usage of Daemon.pm
	- PT-2154 -Updated t/pt-table-sync/standard_options.t
2023-01-06 15:04:10 +03:00
Carlos Salguero
71c9902532 PT-1898 pt archiver keeps transaction open (#479)
* PT-1898 WIP

* PT-1898 Added commit for open txns

* PT-1898 Added commit for open txns

* PT-1898 removed dev leftover
2021-01-12 13:40:51 -03:00
Carlos Salguero
45522dea28 Renamed dubious tests 2020-04-01 15:39:16 -03:00
Carlos Salguero
a3ab87b12e Fixed pt-archiver tests 2020-03-30 14:57:02 -03:00
Carlos Salguero
f0ee14d479 WIP 2020-03-30 08:21:05 -03:00
Roma Novikov
4c28e71092 Merge pull request #376 from percona/PT-157
PT-157 Specifying the index to use for pt-archiver ignores --primary-key-only
2019-01-03 11:50:15 +02:00
Carlos Salguero
152712f799 PT-1667 Added replication channels support to pt-archiver 2018-12-05 14:15:51 -03:00
Carlos Salguero
4230f411e4 PT-157 Specifying the index to use for pt-archiver ignores --primary-key-only 2018-11-27 12:25:47 -03:00
Carlos Salguero
f0c947d9cf PT-1554 Test fixes for pt-archiver 2018-05-23 10:59:50 -03:00
Carlos Salguero
16df170671 PT-1554 Fixed tests for pt-archiver/utf8 2018-05-15 15:19:41 -03:00
Carlos Salguero
d73624e22b PT-1554 Fixed tests for pt-archiver/utf8 2018-05-15 15:17:34 -03:00
Carlos Salguero
1d1c13fbcb WIP 2018-01-16 11:11:16 -03:00
Carlos Salguero
0917acb1ff Fixed JSONFormater tests and dev env scripts 2017-07-12 13:01:57 -03:00
Carlos Salguero
163a7b095f Merge branch '3.0' into PT-143 2017-05-23 16:59:30 -03:00
Carlos Salguero
a4ecd9678f PT-143 Fixed key handling
When tehre is a table having a key like:
PRIMARY KEY (`id`,`start`,`end`,`user_id`(13),`interval`),
DBI driver is taking (13) as part of the field name.
Fixed the way pt-archiver composes the key using DBI cols field
instead of the colnames field since the cols field has the correct
field names for the key.
2017-05-18 12:03:02 -03:00
Carlos Salguero
e305c40f52 PT-141 added --output-format to pt-archiver 2017-05-15 13:51:58 -03:00
Carlos Salguero
020771b419 Updated changelog 2017-01-16 09:56:39 -03:00
Carlos Salguero
01daf0030e bug-1593265 Fixed pt-archiver deletes wrong rows
In the case we are trying to migrate a table with no PK nor an unique
key, pt-archiver was failing to select the correct rows for deletion.
This fix implemented here is to add ALL columns in the WHERE clause of
the DELETE command. This way, we are deleting only the exact same row we
just migrated but using columns instead of an index.
2016-06-22 13:17:57 -03:00
frank-cizmich
6433c99713 various 5.7 test and tool compatibility fixes 2015-12-24 09:49:17 -03:00
frank-cizmich
4d4605cc99 fixed basics.t test for pt-archiver 2015-08-25 12:17:29 -03:00
Frank Cizmich
5051753c6f removed trailing space in code and tests 2014-11-05 18:30:58 -02:00
Frank Cizmich
c99f271649 fixed pt-archiver row skipping on partitioned tables - 1376561 2014-10-10 19:20:39 -02:00
Daniel Nichter
dc2ac4a9f1 Failing test case: t/pt-archiver/bugs.t. 2013-08-07 19:18:51 -07:00
Brian Fraser
e3dae6cc50 bulk_insert.t: Stop using Encode::_utf8_on(), use utf8::decode() instead 2013-04-19 20:45:19 -03:00
Brian Fraser
22fab42e01 Fix for 1127450 in DBD::mysql 3.0007 2013-04-19 19:13:55 -03:00
Brian Fraser
4abf15e963 Fix for 1127450: pt-archiver wide character 2013-04-02 06:59:58 -03:00
Daniel Nichter
3a17d1d6fd Skip t/pt-archiver/check_slave_lag.t on MySQL 5.6 because the trick doesn't work. 2013-03-03 08:41:41 -07:00
Daniel Nichter
364e08229d Test that --version-check works/is enabled by default. 2013-02-21 16:07:33 -07:00
Daniel Nichter
fc851caec8 Simplify checking for .bzr/ to auto-disable --version-check in dev and test envs. Update t/pt-archiver/version_check.t. Need to update all other tools... 2013-02-21 15:59:49 -07:00
Daniel Nichter
8ecde260a7 Don't try https and http: use https if possible, else http. Lower timeout from 5 to 3 seconds. Start updating/fixing pt-archiver/version_check.t. 2013-02-14 09:41:52 -07:00
Daniel Nichter
297b5ff2f3 TODO for timing-related test ndoesn't work on MySQL 5.6. 2013-02-12 09:23:45 -07:00
Daniel Nichter
b0cf2e75a4 Make t/pt-archiver/file.t clean up after itself. 2013-01-17 15:43:23 -07:00
Daniel Nichter
97e0529798 Rewrite t/pt-archiver/standard_options.t to make it reliable. 2012-12-06 10:02:24 -07:00
Daniel Nichter
e69533e492 Test with MyISAM tables. Add PXC section to pt-archiver docs. 2012-11-30 19:25:35 +00:00
Daniel Nichter
8343f6b1f7 Conditionalize dest.t for PXC. 2012-11-30 18:34:14 +00:00
Daniel Nichter
2da682dff3 Fix pt-archiver tests to work with PXC in cluster mode. dest.t is still a work in progress. 2012-11-30 18:16:11 +00:00
Daniel Nichter
a9ccca199d Rewrite t/pt-archiver/pxc.t. 2012-11-30 18:13:25 +00:00
Brian Fraser
d496fbcf11 Tests for pt-archiver + PXC 2012-11-29 07:29:24 -03:00
Brian Fraser
514feb296c t/pt-archiver/issue_1229.t: Stop checking hardcoded indexes 2012-11-21 13:23:26 -03:00
Brian Fraser
98190d25e7 t/pt-archiver/issue_1225.t: Don't assume that the first two values in an autoinc table will have indexes 1 & 2 2012-11-21 13:23:05 -03:00
Brian Fraser
ef458d6bc2 t/pt-archiver/bulk_regular_insert.t: Stop checking hardcoded indexes 2012-11-21 13:22:25 -03:00
Brian Fraser
7efb2dbf37 t/pt-archiver/bulk_insert.t: Stop checking hardcoded indexes 2012-11-21 13:21:56 -03:00
Brian Fraser
771059a35e t/pt-archiver/basics.t: Stop checking ahrdcoded indexes, to account for PXC's use of an autoinc offset 2012-11-21 13:21:30 -03:00
Brian Fraser
bb47e4cdcc Removed the L option from the dsn_opts exported by PerconaTest, as it was useless and breaking tests, and added an L=1 to a leftover pt-archiver --bulk-insert call 2012-11-07 08:54:39 -03:00
Brian Fraser
b9bfe6114c Merged fix-821715-enable-local-infile-in-dsn 2012-10-30 22:12:57 -03:00
Daniel Nichter
7cc7d7e729 Make pt-archiver --sleep tests more precise and reliable. 2012-10-25 16:21:43 -06:00
Brian Fraser fraserb@gmail.com
9e832790f8 LOAD DATA LOCAL INFILE: The hopefully final fix.
This introduces a L option to the DSNs of pt-upgrade and pt-archiver,
which turns on mysql_local_infile.
2012-10-17 19:19:44 -03:00
Brian Fraser
bc23efc3ac Added a forgotten word in two tests' expected output 2012-09-24 17:12:53 -03:00