Commit Graph

295 Commits

Author SHA1 Message Date
Daniel Nichter
923e643b04 Skip skip_innodb.t tests with 5.6 because it seems like InnoDB can't be disabled any longer. 2013-02-18 18:17:38 -07:00
Daniel Nichter
680477ed58 Add 'DROP PRIMARY KEY' to --check-alter. 2013-01-29 18:16:38 -07:00
Daniel Nichter
7ec6abd684 Fall back to using pk/ui from orig table if new table del index uses cols that no longer exist in orig table. 2013-01-29 17:51:43 -07:00
Brian Fraser
42484ecd10 Merged mysql-5.6-test-fixes and resolved conflicts 2012-12-19 13:47:54 -03:00
Daniel Nichter
b41ae476ae Only use LOCK IN SHARE MODE with MySQL 5.1+. 2012-12-11 16:54:24 +00:00
Daniel Nichter
e441b571c3 Fix a pt-osc test by analyzing table to get accurate explain estimate. 2012-12-04 00:51:24 +00:00
Daniel Nichter
8549fe5d99 Test and require wsrep_OSU_method=TOI. 2012-11-29 23:26:53 +00:00
Daniel Nichter
824c34b5d2 Only check --alter if given. Fix some tests, add add_col to make some tests work on PXC or not. 2012-11-28 21:11:29 +00:00
Daniel Nichter
61b352a04d Fix sandbox/load-sakila-db so it exits on error. 2012-11-28 17:55:35 +00:00
Daniel Nichter
7b330c4817 Add and use basic_no_fks_innodb.sql with PXC to avoid MyISAM bugs. Make query_table.pl handle deadlock on START TRANSACTION. Give alter_active_table.t tests unique names. 2012-11-28 01:32:31 +00:00
Daniel Nichter
5343d43528 Change basic_no_fks.sql back to MyISAM but with explicit aut-inc values. 2012-11-27 11:37:18 -07:00
Daniel Nichter
ea1c6f6ca9 Add lock_in_share_mode option to NibbleIterator. Silence query_table.pl diag messages. 2012-11-27 17:41:05 +00:00
vagrant
e37d59877f Handle deadlocks properly in query_table.pl. 2012-11-21 07:57:25 -08:00
vagrant
537b36c73c Use InnoDB instead of MyISAM in basic_no_fks.sql. Make query_table.pl handle error on COMMIT. 2012-11-20 17:27:54 -08:00
Brian Fraser fraserb@gmail.com
31ca347984 Merged pt-osc-rename-active-column-test 2012-11-10 16:28:31 -03:00
Daniel Nichter
0670d27eb0 Merge pt-osc-default-engine 2012-11-10 10:18:02 -07:00
Brian Fraser
2c9ebf33e2 Missing sample file for a pt-osc test 2012-11-10 11:00:42 -03:00
Brian Fraser
df370f537c t/pt-online-schema-change/alter_active_table.t: Add a test for renamed columns 2012-11-10 10:33:55 -03:00
Brian Fraser
ea936dd07a t/pt-online-schema-change/basics.t: --statistics test outputs an extra line in 5.5 2012-11-09 13:44:21 -03:00
Daniel Nichter
66c4c8b98b Merge fix-1045317-pt-osc-statistics 2012-11-09 08:44:09 -07:00
Daniel Nichter
1ec018fd82 Simplify and reword --statistics code, tests, and docs. 2012-11-08 18:05:02 -07:00
Daniel Nichter
da50daf0f7 Merge pt-osc-data-loss-bug-1068562 2012-11-08 16:38:07 -07:00
Brian Fraser
57b3706f1a Fixed a bug in Quoter->split_unquote, added several tests for find_renamed_cols 2012-11-08 06:13:43 -03:00
Daniel Nichter
6d8d20faa1 Move rename column tests to rename_columsn.t. 2012-11-07 10:53:00 -07:00
Daniel Nichter
959c2ecf48 Simplify handling old/new cols by making @common_cols have {old=>col,new=>col} mappings. Manually merge bug 1062324 fix. Fix err/warn messages. 2012-11-07 10:26:57 -07:00
Daniel Nichter
530b8bbceb Rename _find_renamed_cols() to find_renamed_cols() and add unit tests in find_renamed_cols.t. Tweak dry-run and error message re --check-alter. 2012-11-07 09:30:23 -07:00
Brian Fraser
74cd9233c3 Tweaked the report format, which now includes the number of INSERTs 2012-11-06 14:22:56 -03:00
Daniel Nichter
ddda26fb7f Merged fix-i26211-1058285-821722-implicit-ansi_quotes 2012-11-05 10:57:11 -07:00
Brian Fraser
062f76ae33 Added a test for the second bug in customer issue 26211 2012-11-01 17:28:06 -03:00
Daniel Nichter
7d64ca2113 Test that SQL_MODE isn't changed. 2012-11-01 11:46:54 -06:00
Daniel Nichter
949cf31037 Set sql_mode='' before SHOW CREATE TABLE--don't bother with replacing certain values. Move and rewrite tests to ansi_quotes.t. 2012-11-01 11:31:31 -06:00
Brian Fraser
cb3fb74082 Fix for 1045317: Added a --statistics option to pt-osc 2012-10-30 21:45:52 -03:00
Brian Fraser
d5a3a6e59c Update per Daniel's comments & some minor fixes 2012-10-30 15:15:38 -03:00
Brian Fraser fraserb@gmail.com
fcf5fbcc6f Fix for 1068562: pt-online-schema-change loses data when renaming columns 2012-10-30 11:50:13 -03:00
Daniel Nichter
575c94b29e Add --default-engine to pt-osc. 2012-10-22 08:44:44 -06:00
Daniel Nichter
b8f6db2045 Add failing test case. 2012-10-20 12:09:20 -06:00
Brian Fraser
2bcc380c68 Fix for customer issue 26211 ($avg_rate might be zero), plus a fix for bug 1058285 (also related to 26211), and an emergent part of 821722: Several sql_modes implicitly turn on ANSI_QUOTES 2012-10-17 15:52:15 -03:00
Daniel Nichter
ba786e9e11 Correct code comment. 2012-10-11 15:21:55 -06:00
Daniel Nichter
77485efdbc Use new tbl indexes to create delete trigger. 2012-10-11 15:20:53 -06:00
Brian Fraser
8626c07a99 Fix for 1041372: pt-osc and long table names 2012-08-30 18:39:53 -03:00
Daniel Nichter
217a45df6f Conditionalize top 5 slowest test files, saving 25%/5m * 15 configs = 1hr. 2012-08-12 10:16:52 -06:00
Brian Fraser fraserb@gmail.com
b5191a310a Fixes as per Daniel's review; Removed the --quiet usage inpt-osc's nibble_is_safe, as it was ptc cruft 2012-07-31 13:33:30 -03:00
Brian Fraser fraserb@gmail.com
62c74e1e76 Previous commit left an unfinished comment 2012-07-30 19:08:37 -03:00
Brian Fraser fraserb@gmail.com
1de45b70be pt-osc: Change --quiet back and remove the quietness checks 2012-07-30 18:35:24 -03:00
Brian Fraser fraserb@gmail.com
05f923545c pt-osc: Make --quiet behave like in the other tools 2012-07-30 11:41:09 -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
Brian Fraser
f38512c0d1 t/pt-online-schema-change/sanity_checks.t: use full_output() 2012-07-11 17:30:37 -03:00
Brian Fraser fraserb@gmail.com
09c79c2596 t/pt-online-schema-change/alter_active_table.t: Don't bail out if there was a test failure. 2012-06-11 00:19:34 -03:00
Daniel Nichter
28637d8c95 Remove check_tables.t because it's from 2.0 (removed in 2.1 r228). 2012-06-10 22:31:48 -04:00
Daniel Nichter
f890ceafb7 Rename pt-online-schema-change/check_tables.t.THIS. 2012-06-10 13:23:06 -04:00