Brian Fraser
dce8db5be1
Fix for 823431: pt-query-advisor hangs on big queries
...
This was caused by a regex backtracking itself to a halt. The solution
was to add a positive lookahead that searches for the floating but mandatory
substrings that the regex needs; if those exist, then eventually it will
match, but if they don't, it'll fail quickly.
2012-10-31 06:48:54 -03:00
Brian Fraser
64fe380986
Updated modules in all tools
2012-10-31 06:18:34 -03:00
Brian Fraser
572ee45185
Merged fix-1052722-pt-fifo-split-n-minus-1-rows-initially
2012-10-30 22:14:11 -03:00
Brian Fraser
b9bfe6114c
Merged fix-821715-enable-local-infile-in-dsn
2012-10-30 22:12:57 -03:00
Daniel Nichter
376572e637
Merge fix-995896-cat-in-daemon
2012-10-30 17:04:22 -06:00
Daniel Nichter
4ceecaf929
Update Daemon.pm in all tools.
2012-10-30 16:59:36 -06:00
Daniel Nichter
c8b31431b0
Handle slurp_file error specifically. Fix Daemon.t test plans.
2012-10-30 16:57:06 -06:00
Daniel Nichter
7f353a8471
Merge pt-find-docu-bug-1013407
2012-10-30 16:23:44 -06:00
Daniel Nichter
3d38ad0672
Remove doc example that doesn't exist.
2012-10-30 16:19:23 -06:00
Daniel Nichter
d616a7e5e6
Merge fix-ptc-slave-binglog-formats-on-5.0.
2012-10-26 17:17:15 -06:00
Daniel Nichter
45ae32ceb2
Presume STATEMENT binlog format if < 5.1.5 and still check other slaves in case they're newer versions of MySQL.
2012-10-26 17:06:21 -06:00
Daniel Nichter
3d03a3a0dc
Don't run binlog_tests unless MySQL 5.1+. Use output() instead of full_output().
2012-10-26 16:52:24 -06:00
Daniel Nichter
302cb7f457
Don't check binlog_format on slaves ! >= 5.1.5.
2012-10-26 16:24:33 -06:00
Daniel Nichter
7cc7d7e729
Make pt-archiver --sleep tests more precise and reliable.
2012-10-25 16:21:43 -06:00
Daniel Nichter
7b5e2fc7a2
Don't use literal values for t/pt-heartbeat/basics.t 'It is being updated' test. Use direct call rather than backticks.
2012-10-25 15:57:22 -06:00
Daniel Nichter
5b4b3886b2
Fix t/pt-slave-delay/auto_restart.t and use direct call, no backticks.
2012-10-25 15:36:24 -06:00
Daniel Nichter
467d0ca7b1
Add deprecation notice to pt-log-player for PT 2.2.
2012-10-25 15:10:00 -06:00
Daniel Nichter
e69f1f24d0
Remove $Sandbox::Percona::Toolkit::VERSION and use $Percona::Toolkit::VERSION instead since it's the authoritative version.
2012-10-24 13:52:10 -06:00
Daniel Nichter
b20f2707de
Merge find_my_cnf_file-bug-1070916.
2012-10-24 13:43:12 -06:00
Daniel Nichter
33f75e069d
Fix some test plans.
2012-10-24 13:36:32 -06:00
Daniel Nichter
9b920bc5a5
Conditionalize the number of files expected: 14 or 15 depending on if the box has a default my.cnf somewhere.
2012-10-24 13:03:45 -06:00
Daniel Nichter
70b666add9
Update pt-mysql-summary.t.
2012-10-24 12:46:22 -06:00
Daniel Nichter
bb44887615
Update collect_mysql_info in pt-mysql-summary.
2012-10-24 12:45:10 -06:00
Daniel Nichter
b6072ab011
Only cat cnf file > mysql-config-file if it exists.
2012-10-24 12:43:26 -06:00
Daniel Nichter
a94605c825
Use sys default cnf file since test machines have different ones.
2012-10-24 12:08:30 -06:00
Daniel Nichter
aacdd9db17
Rewrite find_my_cnf_file() so if a port is given only that port's cnf is returned, else nothing.
2012-10-24 11:17:34 -06:00
Daniel Nichter
15a2cf6c50
Merge pt-stalk-iter-1-bug-1070434.
2012-10-23 18:25:37 -06:00
Daniel Nichter
f6527695b8
Document extra --run-time-related waits.
2012-10-23 18:21:23 -06:00
Daniel Nichter
c077b1eb3d
Include collector output in diag.
2012-10-23 17:51:59 -06:00
Daniel Nichter
d97912ef1c
Even more waiting for _really_ slow Ubuntu 12 box.
2012-10-23 17:31:05 -06:00
Daniel Nichter
78e1f95257
Really wait for expected data in files.
2012-10-23 17:20:05 -06:00
Daniel Nichter
36ca6bbc23
Make "not stalking" tests more reliable.
2012-10-23 16:54:45 -06:00
Daniel Nichter
8ef6ee451f
Wait for collectors before exiting. Use wait_until instead of sleep in pt-stalk.t, and add lots of diag info when tests fail.
2012-10-23 14:42:41 -06:00
Daniel Nichter
4870307a42
Merge pdl-partitions-bug-1043528.
2012-10-22 15:33:29 -06:00
Daniel Nichter
b406f02f5b
Test and fix deadlock parsing with partition info.
2012-10-22 15:30:29 -06:00
Brian Fraser fraserb@gmail.com
4a22e1e545
Fix for 1052722: pt-fifo-split is processing n-1 rows initially
2012-10-22 18:04:38 -03:00
Daniel Nichter
b59d94fccb
Merge quiet-progress-bug-1039541.
2012-10-22 14:38:34 -06:00
Daniel Nichter
3e39ab54b8
Make pt-osc --quiet disable --progress.
2012-10-22 14:23:05 -06:00
Daniel Nichter
8937610048
Merge opt-parsing-exit-status-bug-1039074.
2012-10-22 12:34:32 -06:00
Daniel Nichter
0d4d008f79
Update OptionParser in all tools.
2012-10-22 12:17:08 -06:00
Daniel Nichter
af1240b6f6
Test cases.
2012-10-22 12:16:42 -06:00
Daniel Nichter
289366ebdf
Exit 1 on option errors.
2012-10-22 11:43:33 -06:00
Daniel Nichter
e9c24579bf
Merge fix-pt-osc-del-trg-bug-1062324.
2012-10-22 11:34:52 -06:00
Daniel Nichter
046c4c7cc0
Make CompareResults.t stable--yet another case of not waiting for replication.
2012-10-20 20:18:55 -06:00
Daniel Nichter
4a494d1a20
Remove all_privs tests. Update Percona::Toolkit::VERSION.
2012-10-20 17:59:28 -06:00
Daniel Nichter
be50548f3b
Fix RawLogParser.t. Use diag in PerconaTest.pm.
2012-10-20 13:32:12 -06:00
Daniel Nichter
85a0616ec3
Redirect sys cmd 2>/dev/null in pt-kill tests to avoid false-positive errors.
2012-10-20 13:26:33 -06:00
Daniel Nichter
ca2675dd98
Merge fix-978133-remove-pqd-priv-checks
2012-10-19 17:17:56 -06:00
Daniel Nichter
f50d8e9120
Remove TableParser::check_table() privs check (re bug 1036747).
2012-10-19 17:14:07 -06:00
Daniel Nichter
a3d5f3d346
Add hint to error messages about what to do if the table doesn't exist.
2012-10-19 17:10:40 -06:00