Commit Graph

864 Commits

Author SHA1 Message Date
Daniel Nichter
90fbfaf41f Don't quote $EXT_ARGV so multiple opts work. 2011-12-08 14:25:35 -07:00
Daniel Nichter
36e88c8e40 Fix typo. 2011-12-08 13:49:44 -07:00
Daniel Nichter
9ec71db008 Collect INFORMATION_SCHEMA.INNODB_LOCK_WAITS data. 2011-12-08 13:33:50 -07:00
Daniel Nichter
1c495936c8 Get Open_tables if <= 1000. 2011-12-08 12:05:20 -07:00
Daniel Nichter
0cfef9134c Collect proclist in loop. 2011-12-08 11:45:16 -07:00
Daniel Nichter
876e3533d0 Use LC_ALL=C to fix broken awk on some systems. 2011-12-07 11:58:33 -07:00
Daniel Nichter
c486bf8461 Remove ON_EXIT. 2011-12-07 10:48:47 -07:00
Daniel Nichter
578896c217 Add daemon.sh. 2011-12-07 10:37:10 -07:00
Daniel Nichter
f624220b40 Fix typo. 2011-12-06 13:36:45 -07:00
Daniel Nichter
f6306c9ec0 Test collect.sh. Use --run-time instead of --interval for collect loop. Fix and require per-test test names in util/test-bash-functions. Fix OPT_ERR in parse_options.sh. 2011-12-06 13:23:47 -07:00
Daniel Nichter
c804079c0d Add Bash libs collect.sh (pt-collect internals), safeguards.sh, and alt_cmds.sh. 2011-12-05 13:48:54 -07:00
Daniel Nichter
6764f4cd06 Close awk fhs to avoid 'too many open files' error. 2011-12-02 14:43:43 -07:00
Daniel Nichter
75d2c99d45 Parse option specs, allow negating with --no-, add more tests. 2011-12-02 11:31:31 -07:00
Daniel Nichter
173085e823 Rename tmpdir funcs. Include pid in tmpdir name. 2011-11-28 11:16:23 -07:00
Daniel Nichter
06b99e987c Don't checksum 1=1 on master if table on slave is too large. 2011-11-17 13:15:26 -07:00
Daniel Nichter
7b8736c1f5 Use SELECT * instead of SELECT COUNT(*) to avoid 'Select tables optimized away'. Make _get_row_estimate() "public". 2011-11-17 12:15:21 -07:00
Daniel Nichter
ff78656859 Fix various resume issues. 2011-11-17 11:20:00 -07:00
Daniel Nichter
42bd00c4d6 Handle resume in OobNibbleIterator. 2011-11-16 11:10:34 -07:00
Daniel Nichter
619cda713f Handle resume in NibbleIterator. 2011-11-15 11:55:07 -07:00
Daniel Nichter
fbb80008de Add OobNibbleIterator.pm. 2011-11-14 17:49:48 -07:00
Daniel Nichter
2bf6365189 Save first lower boundary. 2011-11-14 17:49:42 -07:00
Daniel Nichter
2f9ab4081a Fix prepared report for statements without corresponding prep or exec. 2011-11-08 12:53:50 -07:00
Daniel Nichter
5465634885 Fix --resume --ignore-tables. 2011-11-08 10:20:59 -07:00
Daniel Nichter
a807f56ab5 Add newline to --max-load progress message. 2011-11-07 10:33:21 -07:00
Daniel Nichter
2e72da5717 Use new style Retry in CopyRowsInsertSelect.pm. 2011-11-02 10:05:48 -06:00
Daniel Nichter
348fe17038 Use new style Retry in TableSyncer.pm. 2011-11-02 09:54:29 -06:00
Daniel Nichter
53605aa45e Use Threads_running=25 as default --max-load. Allow = or : as var-val separator. 2011-11-01 12:13:02 -06:00
Daniel Nichter
8cb5f6b600 Add default OPT_ERR and fix default OPT_TMPDIR. 2011-10-31 11:25:56 -06:00
Daniel Nichter
f2b644ba72 More parse_options tests. Make --opt yes have value "yes" instead of "1". Change ok() to cmd_ok() in test-bash-functions. Mimic Perl modulue headers in Bash libs so update-modules will work with the latter. 2011-10-28 11:08:59 -06:00
Daniel Nichter
1ec666de0e Add Bash libs tmpdir and log_warn_die. Docu parse_options. Don't use TMPDIR in test-bash-functions; add ok() to test-bash-functions. 2011-10-27 11:56:58 -06:00
Daniel Nichter
1ae8661271 First Bash parse_options lib with tests. 2011-10-26 10:50:55 -06:00
Daniel Nichter
ac9373bbff Add --max-load. Reset instead of recreating Progress objects. 2011-10-19 21:08:46 -06:00
Daniel Nichter
79beac6eb7 Add MySQLStatusWaiter.pm. 2011-10-19 20:07:02 -06:00
Daniel Nichter
c4db7c0633 Test and fix very small --chunk-time. Report immediately when a slave is stopped. Add short form -q for --quiet. Report very slow checksums once for each table. Use Cxn::name() instead of Cxn::dsn()->{n}; remove n from DSNParser; make cxn's name @@hostname by default, else stringified DSN parts. 2011-10-19 11:27:19 -06:00
Daniel Nichter
8d2259e5b3 Fix --ignore-columns in NibbleIterator. Increase test coverage to 93%. 2011-10-18 09:32:48 -06:00
Daniel Nichter
e08719ac4a Fix timestamp. Make DSNs inherit from master DSN. 2011-10-17 11:41:02 -06:00
Daniel Nichter
07420ff78e Don't crash on empty tables with --chunk-size-limit=0. Don't crash trying to print MySQL warning. Finish updating (all the important) tests. 2011-10-15 17:47:56 -06:00
Daniel Nichter
23e9b91d78 Update replication_filters.t and resume.t. 2011-10-15 15:03:25 -06:00
Daniel Nichter
4ad88ddd93 Update progress.t, option_sanity.t, and standard_options.t. Make test env always have slave2 (12347, slave of 12346). Add PerconaTest::count_checksum_results(). Add util/wait-to-exec. 2011-10-14 11:45:11 -06:00
Daniel Nichter
48fb4baa7c Use 'h=localhost' if no DSN or DSN options given. Remove unused DSN parts (D and t) and don't copy some parts. Move issue_947.t tests into standard_options.t and remove issue_947.t. 2011-10-14 07:59:43 -06:00
Daniel Nichter
964bb094a0 Get row estimate from NibbleIterator. Use user's index over MySQL's index when --where is given. 2011-10-13 09:23:53 -06:00
Daniel Nichter
28fa7d62c2 Support --where in NibbleIterator. If --where, prefer index that MySQL wants to use. Keep SHOW TABLE STATUS from SchemaIterator and re-use it in NibbleIterator (avoids double execution). 2011-10-13 08:49:32 -06:00
Daniel Nichter
083fb1b8ca Make --explain cummulative. Update char_chunking.t. Reword checksum query comments. 2011-10-12 11:22:13 -06:00
Daniel Nichter
b2f92391a7 Fatal error if slave dies. Make Cxn::connect() if dbh id dead. Sort slave lag properly and use Cxn instead of dbh in ReplicaLagWaiter. Check master cxn before keepalive. Sleep N+0.25 waiting for chunks. 2011-10-10 10:56:08 -06:00
Daniel Nichter
31256a9e49 Add set callback to Cxn, docu module, and only ask for pass once. 2011-10-07 10:35:28 -06:00
Daniel Nichter
e2e40488c5 Add Cxn.pm. Make MasterSlave, NibbleIterator, and ReplicaLagWaiter use Cxn. Rewrite, simplify Retry. 2011-10-06 12:47:35 -06:00
Daniel Nichter
b3cfd659b1 First basic tests. Reset global var. Add post_pipeline to PercoaTest::no_diff(). 2011-09-29 17:54:38 -06:00
Daniel Nichter
c794f5e119 Implement --replicate and --replicate-check at same time. Pass where arg to find_replication_differences(). 2011-09-29 12:16:35 -06:00
Daniel Nichter
c4092295a5 Re-implement --replicate-check. Add --quiet. Update find_replication_differences(). 2011-09-29 10:46:22 -06:00
Daniel Nichter
e2739d8a25 Add NibbleIterator::set_boundary(). 2011-09-29 09:11:50 -06:00