Commit Graph

643 Commits

Author SHA1 Message Date
Daniel Nichter
0fc84ff7c0 Switch bugs.t to use done_testing. 2012-07-27 11:52:24 -06:00
Daniel Nichter
203b0a9cb6 Report DIFFS as the true number of unique chunks that differ across all slaves. 2012-07-27 11:30:33 -06:00
Daniel Nichter
1875c92674 Partial bug fix: report max diffs, not just last slave's diffs. Still needs fixing to report count of all unique chunk# diffs. 2012-07-27 11:16:41 -06:00
Daniel Nichter
a07dc3c146 Merge fix-pt-osc-empty-table-bug-1020997 2012-07-26 16:49:40 -06:00
Daniel Nichter
2290827eee Stop nibbling if chunking but not first lower boundary because table is empty. Print test debug via diag(). 2012-07-26 16:44:24 -06: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
Daniel Nichter
487d14228b Handle --nofoo like --no-foo in parse_options.sh and update the Bash tools. 2012-07-21 11:57:53 -06:00
Daniel Nichter
e1b39b3d5f Use TRUE/FALSE for typeless option values in --help. Update parse_options.sh lib in Bash tools. 2012-07-21 11:40:39 -06:00
Daniel Nichter
54733dad5f Test user privs for bug 916168. 2012-07-20 17:58:44 -06:00
Daniel Nichter
c1a286bb41 Respect --replcace when doing INSERT after --create-table. 2012-07-20 16:05:20 -06:00
Brian Fraser
bfa5f488fa Merged new-versionparser 2012-07-20 17:25:10 -03:00
Brian Fraser
adc02c767c Mo tests: Give everything a unique name 2012-07-19 18:38:35 -03:00
Daniel Nichter
c71f3b15e1 Check that vars are defined before using them as hashrefs. 2012-07-19 15:33:27 -06:00
Daniel Nichter
785de0cf57 Merge pt-kill-log-dsn. 2012-07-19 11:20:29 -06:00
Brian Fraser
f2016ded20 Really make a test 5.0 compatible 2012-07-19 13:40:54 -03:00
Brian Fraser
64c14e18f4 Remove MySQL 4.0 checks from several libraries, losing the VP dependency 2012-07-19 13:19:26 -03:00
Brian Fraser
a964076cc2 t/pt-kill/kill.t: Make a test 5.0 compatible 2012-07-19 13:10:12 -03:00
Brian Fraser
cbded60b8c VersionParser.t: Add descriptions to three tests 2012-07-19 12:07:16 -03:00
Brian Fraser
ade6357157 Make all t/lib/Mo.pm tests use done_testing 2012-07-19 11:45:43 -03:00
Daniel Nichter
c78c3bfbab Update Compare* modules in pt-upgrade. 2012-07-17 16:51:39 -06:00
Daniel Nichter
e797e463c1 Use hostN intead of full hostname in Compare* summaries. 2012-07-17 16:47:33 -06:00
Daniel Nichter
46b0c9ab0c Update output samples with new hostN. 2012-07-17 09:57:08 -06:00
Daniel Nichter
28f50bbac5 Use host instead of Host. 2012-07-17 09:53:07 -06:00
Daniel Nichter
b2fb12853f Add # HostN: <full hostname> to UpgradeReportFormatter header and use HostN in column instead. 2012-07-17 09:49:13 -06:00
Brian Fraser fraserb@gmail.com
d826c7168b Merged fix-984915-unchecked-do-calls-dsnparser 2012-07-14 23:58:17 -03:00
Brian Fraser fraserb@gmail.com
27db3bc8cf Update the code to work on current trunk.
Changes for 941469 conflicted with this fix, so this had to be updated.
2012-07-14 23:31:05 -03:00
Brian Fraser
815b4ce961 Fix the test plan for t/lib/VersionParser.t 2012-07-13 03:40:17 -03:00
Brian Fraser
42649bc1d2 Add t/lib/Mo and a bunch of tests 2012-07-13 00:43:17 -03:00
Brian Fraser
ccccafd4df Test VP->flavor and fix some udnerlaying buys 2012-07-12 23:37:53 -03:00
Brian Fraser
c5555234c1 VersionParser::normalized_version: Don't use _version_split, use the values from methods instead 2012-07-12 23:15:01 -03:00
Brian Fraser
f558b4b9da Fix 984915: DSNParser does not check return value of do() calls 2012-07-12 22:42:54 -03:00
Daniel Nichter
554bd01f41 Stabilize some pt-kill tests. 2012-07-12 17:26:54 -06:00
Daniel Nichter
b1c6bba43a Test that pt-kill reconnects using new util/kill-mysql-process. Fix optional DSN by adding magical options rule. 2012-07-12 16:49:15 -06:00
Daniel Nichter
dab2e5c692 Add NAME_lc arg to Cxn to prevent it from being set. Use Cxn in pt-kill to retry lost connections. Add support for pt-kill DSN. 2012-07-12 13:52:52 -06:00
Brian Fraser
fdcc9a2290 Add missing VersionParser dependency to t/lib/CompareResults.t 2012-07-12 06:25:08 -03:00
Daniel Nichter
d8b0192495 Don't crash if group by attrib is empty string. 2012-07-11 15:46:58 -06:00
Brian Fraser
c00598d3fb Two VersionParser oversights in pt-table-sync 2012-07-11 16:46:54 -03:00
Brian Fraser
8179b1f1a1 Updated the tests to use the new VersionParser 2012-07-11 15:21:47 -03:00
Daniel Nichter
6269b196a3 Tweak t/lib/bash/collect.sh and t/lib/bash/report_mysql_info.sh and add wait_for_files() to util/test-bash-functions so hopefully they'll be more stable. 2012-07-10 16:33:00 -06:00
Daniel Nichter
4c7243d944 Tweak pt-table-sync/replicate_do_db.t to be more stable and give more info when certain tests fail. 2012-07-09 16:54:32 -06:00
Brian Fraser fraserb@gmail.com
c87235b0ff Fix 984915: DSNParser does not check return value of do() calls 2012-06-11 22:02:49 -03:00
Daniel Nichter
18073bd7a2 Remove --[no]zero-bool from pt-query-digest. 2012-06-11 20:43:05 -04:00
Brian Fraser fraserb@gmail.com
bc8f5a610c Change TMPDIR to PT_TMPDIR 2012-06-11 17:51:43 -03:00
Daniel Nichter
bf2a769536 Export TMPDIR to make tmpdir.t pass. 2012-06-11 13:28:14 -07:00
Brian Fraser fraserb@gmail.com
07081d5761 tmpdir.sh: Use the -t flag for mktemp 2012-06-11 17:07:38 -03:00
Daniel Nichter
69ba6c4efd Reset nibble_time for each chunk. 2012-06-11 14:43:18 -04:00
Daniel Nichter
c9ace1b931 Failing test for SKIPPED if chunk # > 1. 2012-06-11 14:04:41 -04:00
Daniel Nichter
3f2295ec46 Implement IndexLength in pt-table-checksum and pt-online-schema-change. Tag the IndexLength queries with "key_len" and make n_index_cols optional--get full key_len if not given. 2012-06-11 12:54:26 -04:00
Daniel Nichter
4f3bdabf7c Failing test for key_len with --chunk-index-columns. 2012-06-11 11:58:16 -04:00
Daniel Nichter
fa9cf03505 Add IndexLength.pm. 2012-06-11 11:47:03 -04:00