Commit Graph

336 Commits

Author SHA1 Message Date
Daniel Nichter
fcc3a44e23 Update alter_active_table.t and fix NibbleIterator to handle a growing table. 2012-03-29 15:23:38 -06:00
Daniel Nichter
2dfb3318c2 Test sakila.staff using auto-chosen drop_swap. 2012-03-29 11:38:35 -06:00
Daniel Nichter
044b16f230 Change --update-foreign-keys-method to --alter-foreign-keys-method and make it required if there are child tables. Add 'auto' and 'none' (this one yet implemented) as methods. Fix drop_swap when it's auto-chosen. Test that the expected method is used. Exit 1 instead of 0 if user didn't specify required options. 2012-03-29 11:30:20 -06:00
Daniel Nichter
6c83106ce8 Use CleanupTask to ensure tool always, automatically cleans up. Move create triggers step before copy rows, to keep related code together. 2012-03-28 18:40:23 -06:00
Daniel Nichter
02b3574582 Add critical load to MySQLStatusWaiter.pm and pt-osc. Clean up the tool's docu. 2012-03-27 19:17:17 -06:00
Daniel Nichter
4c542a71fc Remove reminents of stuff copied in from pt-table-checksum. Handle errors properly in exec_nibble(). 2012-03-27 19:06:35 -06:00
Daniel Nichter
dc229d76ff Auto-determine --update-foreign-keys-method unless specified. Auto-find --child-tables unless specified. Handle fk refs in different dbs. Increase chunk size limit from 2.0 to 4.0. Change 'drop_old_table' update fk method to 'drop_swap'. 2012-03-25 15:45:52 -06:00
Daniel Nichter
82aa518774 Remove new-table options and enhance error msg if creating new table fails. 2012-03-25 12:24:27 -06:00
Daniel Nichter
3589ec2c7c Test that fk constraints actually still hold. 2012-03-25 11:45:34 -06:00
Daniel Nichter
0207e712b8 Add sanity_checks.t. 2012-03-25 11:33:02 -06:00
Daniel Nichter
45c1f3bfb6 Make NibbleIter query comments customizable. Update the module in pt-table-checksum and pt-osc. 2012-03-25 10:37:19 -06:00
Daniel Nichter
d3ad8c84c0 Do not ever create --new-table. Rewrite basics.t. Add more debug statements. 2012-03-24 12:47:08 -06:00
Daniel Nichter
a17bdd65d3 Rewriting pt-online-schema-change 2.1.1. Work in progress (this code doesn't work yet). 2012-03-20 13:34:16 -06:00
Daniel Nichter
fe3b5de233 Set TZ to make tests work on other boxes. 2012-03-07 10:22:38 -07:00
Daniel Nichter
14760f22d3 Fix trailing blank lines in samples. 2012-03-07 09:38:10 -07:00
Daniel Nichter
991d6c606b Fix samples for MySQL 5.0. 2012-03-07 09:35:50 -07:00
Daniel Nichter
e122b884e2 Merge lp:~percona-toolkit-dev/percona-toolkit/fix-928226. 2012-03-06 14:18:51 -07:00
Daniel Nichter
293caf3376 Wait for unstable test. 2012-03-06 13:56:17 -07:00
Daniel Nichter
df0f793815 Fix pt-query-digest mirror.t from previous merges. 2012-03-06 13:23:20 -07:00
Daniel Nichter
b5160b4b71 Fix number of tests. 2012-03-06 13:16:42 -07:00
Daniel Nichter
89263e6465 Make test case-insenstive so it works on 5.0 as well as 5.1+. 2012-03-06 12:05:52 -07:00
Daniel Nichter
d20d8bb878 Merge lp:~percona-toolkit-dev/percona-toolkit/fix-osc-repl-bug-933232. 2012-03-02 13:29:44 -08:00
Daniel Nichter
866a042444 Add --execute and die unless it's given. Enhance docu/risks about replication. 2012-03-02 12:30:16 -08:00
Brian Fraser fraserb@gmail.com
06f1b7319e Fix for 928226: https://bugs.launchpad.net/percona-toolkit/+bug/928226 2012-03-02 11:05:33 -08:00
Daniel Nichter
36c666ca11 Merge lp:~percona-toolkit-dev/percona-toolkit/fix-md-bug-926598. 2012-03-02 10:19:57 -08:00
Daniel Nichter
afd0b2a713 Merge lp:~percona-toolkit-dev/percona-toolkit/collect-without-stalking. 2012-03-02 08:16:55 -08:00
Daniel Nichter
7247a3a9ac Test, ensure pt-table-checksum can handle col names with dots. 2012-03-01 08:20:12 -08:00
Daniel Nichter
3ff75bbec6 Merge lp:~percona-toolkit-dev/percona-toolkit/stabilize-test-suite r130. 2012-02-27 17:08:15 -07:00
Daniel Nichter
b9f6c14e30 Make collect.t mysqladmin debug test more reliable. 2012-02-24 09:39:49 -07:00
Daniel Nichter
6620595fac Make collect.t mysqladmin debug test reliable. 2012-02-24 09:18:18 -07:00
Daniel Nichter
b99293d1b3 Simplify and individuate Bash tests so prove reports failures where they happen. 2012-02-23 13:58:57 -07:00
Daniel Nichter
a83e97a821 Parse InnoDB_trx_id as a string. 2012-02-23 09:34:17 -07:00
Daniel Nichter
a33031e6e4 Merge 2.0 r187. 2012-02-21 14:26:44 -07:00
Daniel Nichter
65bf629184 Remove test debug hacks. 2012-02-21 14:23:41 -07:00
Daniel Nichter
8e9e8eb7a6 Test and fix space-flattening bug. 2012-02-21 13:22:56 -07:00
Daniel Nichter
7c76b25179 Fix basics.t so it doesn't break replication. Add IF EXISTS to DROP TABLE statements. 2012-02-21 12:34:21 -07:00
Daniel Nichter
75457eaadd Test, update modules, and fix bug 873598 in pt-online-schema-change. 2012-02-21 09:06:08 -07:00
Daniel Nichter
17fe96f361 Test and quote all idents, including reserved words and those with spaces, in CopyRowsInsertSelect.pm. 2012-02-20 11:37:34 -07:00
Daniel Nichter
39fe787fdd Test and quote all idents, including reserved words and those with spaces, in OSCCaptureSync.pm. 2012-02-20 11:09:36 -07:00
Daniel Nichter
c0e016e9d1 Add another test to verify collect. 2012-02-16 13:40:41 -07:00
Daniel Nichter
cd17a20119 Add and test --[no]stalk to pt-stalk. Fix ps in pt-stalk tests. Add PerconaTest::wait_for_sh(). 2012-02-16 13:32:46 -07:00
Daniel Nichter
7016b26f09 More test debug hacks. 2012-02-16 10:52:28 -07:00
Daniel Nichter
a17cbc8bd8 Add --filter to pt-kill and allow arbitrary --group-by. 2012-02-15 11:09:29 -07:00
Daniel Nichter
c800ba8fa1 Add test debug hack back to collect.sh. 2012-02-14 14:50:38 -07:00
Daniel Nichter
ab6bafe3ed Remove debug hack from collect.sh. 2012-02-14 14:22:17 -07:00
Daniel Nichter
2c65aa85ae Add debug hack to collect.sh. 2012-02-14 14:03:15 -07:00
Daniel Nichter
810ce4b02d Fixed CompareResults.t. 2012-02-14 13:37:52 -07:00
Daniel Nichter
d0e3fb38ca More debug hacks. 2012-02-14 13:30:15 -07:00
Daniel Nichter
b6dc9d3832 More debug hacks. 2012-02-14 13:22:11 -07:00
Daniel Nichter
8b81b2398f Debug hack in CompareResults.t. 2012-02-14 12:59:54 -07:00