Commit Graph

771 Commits

Author SHA1 Message Date
Daniel Nichter
2670850a70 Functional test and fix query time diffs. 2013-03-11 19:23:02 -06:00
Daniel Nichter
b2809f2a0c Fix and test UpgradeResults::format_query_times001(). 2013-03-11 18:51:43 -06:00
Daniel Nichter
51af4bde2f Fix --progress. 2013-03-11 17:38:42 -06:00
Daniel Nichter
d66be7558a Test --run-time and --progress. 2013-03-11 17:12:43 -06:00
Daniel Nichter
3c07da8499 Test and fix all the log --types. Add backwards-compat null_event arg to MySQLProtocolParser. 2013-03-11 16:13:38 -06:00
Daniel Nichter
f00d53adc3 Fix and test read-only handling in QueryIterator. 2013-03-11 14:28:39 -06:00
Daniel Nichter
2463344060 eval the critical parts. Use specific exit codes. Add --run-time, --progress, --continue-on-error, and --defaults-file. Uncomment the version check call. Update the docs. 2013-03-11 13:28:41 -06:00
Daniel Nichter
270962ad54 Merge 2.2 r551. 2013-03-11 10:51:30 -06:00
Daniel Nichter
e3346332e1 Merge pt-ms-pt-stalk-standard-mysql-options. 2013-03-09 11:57:41 -07:00
Daniel Nichter
828ff38078 Merge clean-up-pqd-2.2. 2013-03-09 10:24:56 -07:00
Daniel Nichter
e5e6b1d9b9 Fix pt-heartbeat/pxc.t. Exit early in test-env if wget fails. Add APP=FORK|mysql to start-sandbox so it too works around the pxc mysqld -V bug; add FORK=pxc to start_sandbox() calls. 2013-03-08 10:07:05 -08:00
Brian Fraser
a3dd5d7ba6 Split the QueryHistory tests out of QueryReview.t 2013-03-07 11:29:30 -03:00
Brian Fraser
0efad73f3e Rearrange mysql options so that --defaults-file is always first, and remove default: localhost from pt-ms and pt-stalk, since parse_options.sh deals with defaults + config files for mysql options poorly 2013-03-06 12:52:17 -03:00
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
Brian Fraser
ebd83f5ba4 Minor fixes for compat 2013-03-05 11:32:21 -03:00
Brian Fraser
91052e7198 Make some internal values show up nicer in --output json 2013-03-05 02:50:13 -03: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
Brian Fraser
734deef881 Split --review and --history 2013-03-01 16:35:43 -03: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
Brian Fraser
4b860cbd7b pqs: Removed tcpdump-errors, made the library always save the errors in a tempfile 2013-02-25 15:59:01 -03: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
1d9b013bab pqd: Removed show-all, shorten, select & print-iterations 2013-02-25 13:10:03 -03:00
Brian Fraser
8e449a1c83 pqd: Remove --type pglog, memcached, and http 2013-02-25 12:13:35 -03:00
Brian Fraser
9e2ce2197f pt-ms & pt-stalk: Enable the standard mysql options 2013-02-25 11:21:46 -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
cb9fe1fac3 Implement all MySQL log parsers. Add report sections, and --report. 2013-02-20 18:20:55 -07:00
Daniel Nichter
0fda528700 Test comparing results to host. 2013-02-20 11:41:42 -07:00
Daniel Nichter
4a4bee9cad Add FakeSth.pm. 2013-02-20 10:58:06 -07:00
Daniel Nichter
b591f0189b First working but not tested comparing against reference results. 2013-02-20 10:56:42 -07:00
Daniel Nichter
a4d771e991 Have ResultWriter.pm save the current db. 2013-02-20 09:37:43 -07:00
Daniel Nichter
144b4794b9 Rename results file results to rows and meta to results. Test more --save-results. 2013-02-20 09:20:17 -07:00
Daniel Nichter
92194f1711 Update samples and remove old tests. 2013-02-20 08:38:42 -07:00
Daniel Nichter
e62a02e0d3 Start testing --save-results. Let $cmd be a file in PerconaTest.pm. Remove 'at ... line N' from EventExecutor.pm errors. 2013-02-20 08:27:49 -07:00
Daniel Nichter
4cb51140f1 Scaffolding for saving and reading reference results. 2013-02-19 19:45:16 -07:00
Daniel Nichter
dcdeb606c8 Test pt-upgrade host-to-host. Implement diff_query_times(). Export $test_diff from PerconaTest instead of doing diag() in no_diff(). 2013-02-19 17:03:50 -07: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
36e8696479 Update diff_rows.t and diff_warnings.t. 2013-02-18 19:27:06 -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