Commit Graph

1295 Commits

Author SHA1 Message Date
Daniel Nichter
7aa51a9f3a Create MasterSlave with required args. 2012-08-02 11:14:47 -06:00
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
d99c7a6041 Update all modules that use --recursion-method, additionally changing it to an array with default processlist,hosts and checking the array for validity 2012-08-01 17:43: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
0d26097f31 t/pt-table-sync/wait.t: use wait_until() instead of sleep() 2012-07-23 13:48:05 -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
b6e4202cfa t/pt-fifo-split/pt-fifo-split.t: Modernize the tests to use wait_for_files and give better diagnostics 2012-07-23 12:26:09 -03:00
Brian Fraser
a195c09bc3 t/pt-ioprofile/pt-ioprofile.t: Mark the --run-time test as TODO to avoid white smoke 2012-07-23 12:17:37 -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
5ac234d1b2 t/pt-archiver/check_slave_lag.t: Mark a timing-related test as TODO to avoid white smoke 2012-07-23 02:06:50 -03:00
Brian Fraser
409f40b240 t/pt-deadlock-logger/standard_options.t: Modernize the tests to stop relying on sleep(), modify an ancient test that was looking for mt-deadlock-logger 2012-07-23 01:52:41 -03:00
Brian Fraser
61a65fcdbd DSNParser.pm: Work around MySQL not resolving encodings sanely.
For some reason, MySQL won't resolve iso-8859-1 or latin-1 as latin1,
and will die if you try to use through in, e.g., SET NAMES.
This commit makes DSNParser resolve those cases on its own
before calling SET NAMES.
2012-07-23 01:11:49 -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
15bf1e78f6 Merge fix-dupe-key-checker-bug-969669 2012-07-19 15:38:25 -06:00
Daniel Nichter
c71f3b15e1 Check that vars are defined before using them as hashrefs. 2012-07-19 15:33:27 -06:00
Daniel Nichter
d8cef2e902 Merge 2.1 r316 and r317. 2012-07-19 12:54:32 -06:00
Daniel Nichter
97a8ba9518 Report when a /tmp/port is missing files. 2012-07-19 12:51:23 -06:00
Daniel Nichter
efb6a0f6ce Don't fail if /tmp/port/stop doesn't exist when stopping test env. 2012-07-19 12:40:51 -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
81d541ec05 Update modules & cut the VP and Mo dependency from several tools 2012-07-19 13:22:45 -03:00
Brian Fraser
dfc271929c Style consistency: Use numeric operators (<, ==, etc) for version checks 2012-07-19 13:20:45 -03:00
Daniel Nichter
436eeac077 Move certain vars to outer scope to avoid Perl 5.8 scoping bug. 2012-07-19 10:20:28 -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
a964076cc2 t/pt-kill/kill.t: Make a test 5.0 compatible 2012-07-19 13:10:12 -03:00
Brian Fraser
de625a873c VersionParser.pm: Code comments 2012-07-19 12:12:28 -03:00
Brian Fraser
02665e802e VersionParser.pm: Quote SQL with q// 2012-07-19 12:08:28 -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
2b1c36d6f6 Merge pt-upgrade-hostname-bug-980318-summary. 2012-07-17 16:53:53 -06: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
859a8a2390 Merge pt-upgrade-hostname-bug-980318. 2012-07-17 10:00:45 -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
fa0a3b0ff5 read_timeout.t: Avoid shelling out, also laxer timing tests to avoid white smoke 2012-07-16 14:31:56 -03:00
Brian Fraser fraserb@gmail.com
4737995563 read_timeout.t: Skip the first test if STDIN isn't a tty or blocking 2012-07-16 13:38:13 -03:00
Brian Fraser fraserb@gmail.com
fa5cbc8ca3 t/pt-query-digest/mirror.t: Don't sleep(1), use wait_for_files() instead 2012-07-15 22:27:55 -03:00
Brian Fraser fraserb@gmail.com
edad060718 t/pt-query-digest/read_timeout.t: Disregard the fractional part of $waited 2012-07-15 20:00:34 -03:00
Brian Fraser fraserb@gmail.com
0af747e4f9 t/pt-query-digest/processlist.t: Mark known fragile test as TODO to avoid white smoke 2012-07-15 19:24:41 -03:00
Brian Fraser fraserb@gmail.com
03e45f97b8 t/pt-ioprofile/pt-ioprofile.t: Be slightly laxer about fractional seconds in a test to avoid white smoke 2012-07-15 19:05:12 -03:00
Brian Fraser fraserb@gmail.com
7574e19821 read_timeout.t: Try increasing the wait a second to avoid white smoke 2012-07-15 19:02:02 -03:00
Brian Fraser fraserb@gmail.com
d826c7168b Merged fix-984915-unchecked-do-calls-dsnparser 2012-07-14 23:58:17 -03:00