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
Daniel Nichter
639f47eb70
Add t/pt-archiver/version_check.t, v-c integration tests. Don't exit early if PTDEBUG && PTVCDEBUG (don't know what state the tool may be in).
2012-08-22 16:20:00 -06:00
Brian Fraser
6952234127
t/pt-archiver/basics.t: Skip some --bulk-insert tests if LOCAL INFILE is disabled
2012-08-15 14:33:04 -03:00
Daniel Nichter
570b26de20
Remove LOAD DATA check from pt-archiver and pt-upgrade. Make test-env check if LOAD DATA works and PerconaTest export . Rewrite how pt-archiver/t/bulk_insert.t conditionalizes on LOAD DATA working.
2012-07-31 15:37:02 -06:00
Brian Fraser fraserb@gmail.com
2f0812fb33
Merged ubuntu-12-64-issues
2012-07-30 11:30:05 -03:00
Brian Fraser
192f38498c
Removed the charset munging and made a note in the pt-archiver docs that the only legal charsets are those known by MySQL
2012-07-27 16:09:32 -03:00
Daniel Nichter
b59040eb83
Test that pt-archiver DSN b=1 causes SET SQL_LOG_BIN=0.
2012-07-26 14:24:07 -06:00
Brian Fraser
5ac234d1b2
t/pt-archiver/check_slave_lag.t: Mark a timing-related test as TODO to avoid white smoke
2012-07-23 02:06:50 -03:00
Brian Fraser
61a65fcdbd
DSNParser.pm: Work around MySQL not resolving encodings sanely.
...
For some reason, MySQL won't resolve iso-8859-1 or latin-1 as latin1,
and will die if you try to use through in, e.g., SET NAMES.
This commit makes DSNParser resolve those cases on its own
before calling SET NAMES.
2012-07-23 01:11:49 -03:00
Brian Fraser
0d572c3a02
Some changes that somehow went missing during the merge
2012-07-13 03:30:05 -03:00
Brian Fraser
0277f19f6d
t/pt-archiver/bulk_insert.t: Don't assume that the db is already there
2012-07-12 14:14:47 -03:00
Brian Fraser
e0d97bbc98
pt-upgrade: Deal with LOCAL INFILE being disabled
2012-07-11 18:36:43 -03: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
Baron Schwartz
b9304dabb5
Fix a number of SQL queries to work with ANSI_QUOTES
2012-06-06 23:14:20 -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