Daniel Nichter
e6d31a666a
Rewrite how MasterSlave handles --recursion-methods.
2012-08-02 10:57:36 -06:00
Brian Fraser
e29aa514e3
t/lib/MasterSlave.t: A call to ->recurse_to_slaves() still used a string instead of an arrayref
2012-08-02 12:38:09 -03:00
Brian Fraser fraserb@gmail.com
a25b9eab40
MasterSlave: Rework how the recursion methods are checked & resolved
...
In part by removing the OptionParser usage out from get_slaves
and recurse_to_slaves and making them expect arrayrefs, thus
forcing our callers to deal with that, and in part by
splitting out the method-checking to MasterSlave::check_recursion_method
and the resolving (originally in find_slave_hosts) into
_resolve_recursion_methods.
2012-08-01 17:39:12 -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
Brian Fraser
a948014991
t/lib/Daemon.t: Tweak the tests to hopefully avoid white smoke
2012-07-23 12:28:55 -03:00
Brian Fraser
a1f1168ab4
t/lib/MasterSlave.t: Check that recurse_to_slaves gets all three slaves, or give a diagnostic
2012-07-23 12:28:25 -03:00
Brian Fraser
68b8eddc5a
t/lib/bash/collect.sh: Wait for the df file before starting
2012-07-23 02:43:15 -03:00
Brian Fraser
02c6421a25
Cxn.pm: Set NAME_lc by default
2012-07-22 23:37:39 -03:00
Brian Fraser
5d8be022e9
Merge ubuntu-12-64-issues
2012-07-20 17:33:13 -03: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
785de0cf57
Merge pt-kill-log-dsn.
2012-07-19 11:20:29 -06: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
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
e797e463c1
Use hostN intead of full hostname in Compare* summaries.
2012-07-17 16:47:33 -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
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
30cc4892cf
bzr update'd the code for assorted VersionParser fixes
2012-07-13 01:39:40 -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
Brian Fraser
fdcc9a2290
Add missing VersionParser dependency to t/lib/CompareResults.t
2012-07-12 06:25:08 -03:00
Brian Fraser
d43ad54b38
Missing skips for the LOCAL INFILE issue
2012-07-11 20:27:02 -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
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
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
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
fa9cf03505
Add IndexLength.pm.
2012-06-11 11:47:03 -04:00
Daniel Nichter
583bc2957e
Don't crash if N is > number of index columns.
2012-06-11 07:55:23 -04:00
Daniel Nichter
970f7d7e64
Merge ~percona-toolkit-dev/percona-toolkit/explain-checksum-chunks.
2012-06-10 13:25:44 -04:00
Daniel Nichter
272f963733
Remove --chunk-index-columns and extend --chunk-index instead to take INDEX:N value. Add n_index_values to TableNibbler.
2012-06-10 10:01:25 -04:00
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
Baron Schwartz
f7c97e749e
Make TableParser.pm handle ANSI quotes
2012-06-07 00:59:59 -04:00
Baron Schwartz
aa42210f72
Fix a number of SQL queries to work with ANSI_QUOTES
2012-06-06 23:36:07 -04: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
79c716d358
Remove pt-table-sync/issue_79.t (it was broken but coincidentally working) and write better tests in filters.t. Add subs to Sandbox and PerconaTest to clear and parse tables used from the general logs. Set log=genlog in the sandbox configs.
2012-06-07 12:38:45 -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
d2c63e1030
make t/lib/TableChunker.t non-non-deterministic
2012-06-06 12:16:25 -04:00
Brian Fraser fraserb@gmail.com
e454e37532
Update the SchemaIterator samples to account for the sentinel table
2012-06-06 21:13:13 -03:00
Daniel Nichter
a178bb32f8
Use md5 "pings" in percona_test.sentinel for sub-second tests that call wipe_clean() twice. Update t/lib/samples/SchemaIterator/all-dbs-tbls-5.0.txt for percona_test.sentinel. Restart slaves in pt-table-checksum/replication_filters.t. Modernize and make pt-table-sync/replicate_do_db.t stable.
2012-06-06 13:31:24 -07:00
Brian Fraser fraserb@gmail.com
c2bb24befc
Merged lp:~percona-toolkit-dev/percona-toolkit/replace-MKDEBUG
2012-06-06 14:15:05 -03:00