Commit Graph

80 Commits

Author SHA1 Message Date
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
Brian Fraser
ee338f7ceb v-c: Re-enable https by default, make --version-check take an optional protocol argument 2012-09-13 10:39:04 -03:00
Brian Fraser
a433fa7d1c Update modules and remove the $can_local_infile skips 2012-08-30 23:46:33 -03:00
Daniel Nichter
26ca0281b5 Use --version-check instead (so it's _not_ on by default; it must be specified). 2012-08-29 14:23:41 -06:00
Daniel Nichter
98338b6508 Simplify how Pingback handles MySQL instances. Remove Percona::Toolkit::slurp_file() because it was causing 'sub redefined' errors, probably due to PerconaTest::slurp_file(). Add more PTVCDEBUG statements. 2012-08-27 17:10:42 -06:00