Commit Graph

295 Commits

Author SHA1 Message Date
Baron Schwartz
47fb3d65e8 Fix a bazillion tests with ANSI sql_mode, and get rid of a bunch of MySQLDump usage. 2012-06-09 14:43:33 -04:00
Brian Fraser fraserb@gmail.com
ba2ddf682b Changed all the pt-osc tests to use full_output, since output uses eval {} 2012-06-07 17:46:19 -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
Baron Schwartz
4af46e81f9 Make t/pt-online-schema-change/alter-active-table.t less fickle, but still not 100% fixed 2012-06-06 16:45:13 -04:00
Baron Schwartz
673058e012 put some feedback in t/pt-online-schema-change/basics.t for impatient testers 2012-06-06 13:15:33 -04:00
Daniel Nichter
7f8d07a615 Mke pt-online-schema-change/privs.t stable by waiting for drop user to replicate. 2012-06-05 15:53:43 -07:00
Daniel Nichter
04d6a51074 Fix TableParser.t modifying mysql.user and mysql.db, and pt-online-schema-change/basics.t modifying mysql.proc. 2012-06-05 11:51:33 -07:00
Daniel Nichter
bdbb66d22b Re-add calls to Sandbox::ok(). 2012-06-03 13:54:32 -04:00
Daniel Nichter
a0b54b145d Merge 2.1. 2012-06-03 13:29:02 -04:00
Daniel Nichter
7e880b0808 Call Sandbox::box() in all tests that use Sandbox. 2012-06-03 12:59:56 -04:00
Brian Fraser fraserb@gmail.com
8e04e3df60 Fix for 1003315: dry-run + alter-fk-method = auto always fail. 2012-05-30 14:27:07 -03:00
Brian Fraser fraserb@gmail.com
56d3d9a3b5 Fix for 1002448 2012-05-27 23:18:50 -03:00
Daniel Nichter
bbe6125d8f Validate --max|critical-load (work in progress). 2012-05-25 12:15:11 -06:00
Daniel Nichter
e27ad9b178 Test and fix --no-swap-tables and --no-drop-new-table. 2012-05-25 10:24:32 -06:00
Daniel Nichter
85ab246323 Test pt-osc --recursion-method=none with user that can't SHOW SLAVE HOSTS. 2012-05-17 10:10:22 -06:00
Daniel Nichter
6d0e207af7 Check if innodb_lock_wait_timeout exists, don't crash. 2012-05-16 17:36:19 -06:00
Daniel Nichter
9967739fa4 Update NibbleIterator in pt-osc to fix it choosing the wrong index instead of the PK; add bugs.t to test this. 2012-05-16 10:04:52 -06:00
Daniel Nichter
c1feb83b96 Uncomment cleanup lines in alter_active_table.t. 2012-04-02 19:32:48 -06:00
Daniel Nichter
02e9d2eed9 Merge preserve-foreign-keys-bug-969726. 2012-04-02 18:22:51 -06:00
Daniel Nichter
3d0cae5a60 Fix and test --alter-fk-method=none. 2012-03-29 16:53:11 -06:00
Daniel Nichter
767aed2a95 Test MAX(pd_col) and AUTO_INCREMENT. 2012-03-29 16:06:12 -06:00
Daniel Nichter
382cb24367 Unset fk_alter_method if there's no child tables. 2012-03-29 15:35:08 -06:00
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
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
d3ad8c84c0 Do not ever create --new-table. Rewrite basics.t. Add more debug statements. 2012-03-24 12:47:08 -06:00
Daniel Nichter
b5160b4b71 Fix number of tests. 2012-03-06 13:16:42 -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
Daniel Nichter
a33031e6e4 Merge 2.0 r187. 2012-02-21 14:26:44 -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
9383572742 Merge trunk r174. 2012-02-07 13:10:11 -07:00
Daniel Nichter
5c6c28a6e6 Fix bug 925007 and bug 897483. 2012-02-01 11:01:49 -07:00
Daniel Nichter
048ad9493c Various test tweaks for stability. 2011-08-25 11:08:57 -06:00
Daniel Nichter
945cfbd153 Fix Bash tests. Add basic pt-align tests. 2011-08-02 15:14:06 -06:00
Daniel Nichter
eb01431399 Change MaatkitTest to PerconaTest in all tool tests. Add stub tests for pt-align and pt-collect. 2011-07-12 16:56:55 -06:00
Daniel Nichter
8e11cd85b3 Change mk_tool::main() to pt_tool::main() in all tests. 2011-06-29 11:56:49 -06:00
Daniel Nichter
b4b6376be1 Add forked Maatkit tools in bin/ and their tests in t/. 2011-06-24 16:02:05 -06:00