Daniel Nichter
eefaeeb8cc
Change --retries to --tries and enhance with per-operation format that also allows setting the wait between tries.
2013-03-05 16:18:02 -07:00
Daniel Nichter
f7f63555ee
Add lib/bash/subshell.sh and use in pt-stalk to fix/improve subprocess waiting.
2013-03-04 17:47:02 -07:00
Daniel Nichter
45813e082d
Merge pt-osc-metadata-lock-bug-1113301.
2013-03-04 12:06:34 -07:00
Daniel Nichter
f0b7712528
Fix tests to work with new --set-vars, and change --lock-wait-timeout to --set-vars innodb_lock_wait_timeout in tests.
2013-03-02 10:17:23 -07:00
Daniel Nichter
5a34a0817e
Fix bug 968596: rename NibbleIterator::chunk_size() to limit() and update ptc and pt-osc.
2013-02-28 19:26:04 -07:00
Brian Fraser
552fddb9a1
PerconaTest: use croak for slurp/load_file
2013-02-28 13:07:52 -03:00
Daniel Nichter
b1e54cce8e
Merge latest 2.2 for MySQL 5.6 fixes.
2013-02-28 08:54:31 -07:00
Daniel Nichter
55049b8759
Fix Runtime.t and update it in all tools.
2013-02-27 19:23:08 -07:00
Daniel Nichter
c6958b497d
First working enhanced --set-vars in pt-osc: no "default: ...", instead default values are under MAGIC_set_vars, picked up by OptionParser and passed to DSNParser. Also increaes --retries from 3 to 10. TODO: more testing.
2013-02-27 18:47:00 -07:00
Daniel Nichter
a21c36ac99
Test that ::parent keeps the dbh alive for the child.
2013-02-26 16:34:48 -07:00
Daniel Nichter
6825fa7f3b
Add parent attrib to Cxn to fix forking after --daemonize.
2013-02-25 17:16:20 -07:00
Daniel Nichter
c3740b7aac
Add Cxn::lost_connection(). Rename runtime to run_time in Runtime.pm.
2013-02-25 11:52:22 -07:00
Brian Fraser
8e449a1c83
pqd: Remove --type pglog, memcached, and http
2013-02-25 12:13:35 -03:00
Daniel Nichter
45a21acc0c
Merge enable-version-check-by-default.
2013-02-22 10:47:57 -07:00
Daniel Nichter
b286da993f
Check for ../../.bzr for when a tool is ran as a module in a test.
2013-02-22 08:00:55 -07:00
Daniel Nichter
fc851caec8
Simplify checking for .bzr/ to auto-disable --version-check in dev and test envs. Update t/pt-archiver/version_check.t. Need to update all other tools...
2013-02-21 15:59:49 -07:00
Brian Fraser
4534981913
VersionCheck: Skip running if called from our bzr repo
2013-02-21 04:41:57 -03:00
Daniel Nichter
07b818b730
Merge p:~percona-toolkit-dev/percona-toolkit/fix-1087319-quoter-multiple-nulls
2013-02-19 13:01:58 -07:00
Daniel Nichter
11a4edd8e8
Fix lib/Sandbox.pm for MySQL 5.6 too: don't checksum system and stat tables. Update 5.6 data.tar.gz with default data from 5.6.10.
2013-02-18 17:34:01 -07:00
Daniel Nichter
6d1c96e445
Seralize empty list as undef.
2013-02-18 12:51:28 -07:00
Daniel Nichter
97f963c7f7
Remove warning from DSNParser if using UTF-8 and DBD::mysql < 3.0008 (r508). --version-check can catch this.
2013-02-18 12:44:02 -07:00
Daniel Nichter
8ecde260a7
Don't try https and http: use https if possible, else http. Lower timeout from 5 to 3 seconds. Start updating/fixing pt-archiver/version_check.t.
2013-02-14 09:41:52 -07:00
Daniel Nichter
877d1a3b26
Change version_check_file() to prefer global system dirs first.
2013-02-14 08:49:57 -07:00
Daniel Nichter
4545926556
Fix get_perl_module_version(). Add 'hours until next check' to debug output.
2013-02-14 08:28:18 -07:00
Daniel Nichter
6c79f4a5c1
Update, clean up VersionCheck. Update it all tools.
2013-02-13 20:57:39 -07:00
Daniel Nichter
13172a05dc
Add untested warning to DSNParser if using UTF-8 and DBD::mysql < 3.0008.
2013-02-12 19:09:25 -07:00
Daniel Nichter
0fd4f27289
Simplify and re-test Quoter::(de)serialize_list().
2013-02-12 12:58:26 -07:00
Daniel Nichter
b6bd78d205
Rename Pingback.pm to VersionCheck.pm.
2013-02-11 19:02:59 -07:00
Brian Fraser
c02844a9d6
Merged merge-VersionCheck-Pingback
2013-02-11 22:21:53 -03:00
Brian Fraser
6bf3a35a1a
Merged use-lmo.
...
This commit renames our fork of Mo to Lmo, since the two have diverged
a huge deal. The merged branch streamlined Lmo a great deal as well,
for maintainability.
2013-02-11 21:19:56 -03:00
Daniel Nichter
c9aa9e8cbd
Merge 2.1.9 fixes for pt-pmp.
2013-02-05 09:51:24 -07:00
Daniel Nichter
4c519735f7
Merge 2.1.9 fixes.
2013-02-05 09:47:17 -07:00
Daniel Nichter
8dc976b96b
Merge mysql-connect-errors-bug-1103045 (bug 1103045 and bug 823411).
2013-02-01 11:03:25 -07:00
Daniel Nichter
ea4dfa7605
Add Error_msg (but no Error_no) when client closes connection during handshake.
2013-02-01 10:58:27 -07:00
Daniel Nichter
572294540c
Make 'Connect abort' errors just 'Connect' so all connect errors are lumped together.
2013-02-01 10:47:38 -07:00
Daniel Nichter
4840b9c3a8
Remove other instance of 'none' Error_no in MySQLProtocolParser.pm.
2013-02-01 10:41:36 -07:00
Daniel Nichter
cf74cd791e
Only add Error_no to event if there is one. Don't stringify it either; set its type in pqd.
2013-02-01 10:26:45 -07:00
Brian Fraser fraserb@gmail.com
809164becd
Change the Report modules to use Lmo
2013-02-01 14:06:13 -03:00
Brian Fraser fraserb@gmail.com
d816c6497e
Merged Lmo and updated everything that used it
2013-02-01 13:29:48 -03:00
Brian Fraser
d2308be64c
Merged VersionCheck into Pingback
2013-01-31 21:11:14 -03:00
Brian Fraser
a814b0be64
Minor fix to get Mo::has(handles => qr/.*/) working again
2013-01-31 20:00:09 -03:00
Brian Fraser
5b9932ca28
Updated some files that still used the old ReportFormatter
2013-01-31 19:51:38 -03:00
Brian Fraser
efc89a6725
Merged simplify-pqd
2013-01-31 14:52:34 -03:00
Brian Fraser
5fd8042e35
Updated JSONReportFormatter to drop the hard dependency on JSON.xs and use Transformers::encode_json if JSON is not available
2013-01-30 17:56:19 -03:00
Brian Fraser
98f490492c
Change JSONReportFormatter to handle versions of JSON.pm that don't add a newline at the end of the encoded json
2013-01-30 17:47:41 -03:00
Brian Fraser
a9661d09eb
Fix for bug 1099836: pt-online-schema-change fails with "Duplicate entry" on MariaDB
2013-01-30 12:33:42 -03:00
Daniel Nichter
9e7248861d
Catch and report aborted connects.
2013-01-28 14:12:48 -07:00
Daniel Nichter
15b1c43874
Fix and test parser_error_packet() for non-SQL errors.
2013-01-25 11:24:35 -07:00
Daniel Nichter
26cc08d3d9
Fix default log level in log_warn_die.sh.
2013-01-24 11:39:23 -07:00
Daniel Nichter
b196f50e60
Test --verbose. Remove global default OPT_VERBOSE from log_warn_die.sh so tool's option can set it.
2013-01-24 11:13:39 -07:00