Commit Graph

74 Commits

Author SHA1 Message Date
Baron Schwartz
bfd2222a54 make slaves set themselves read_only. Fix problem with replication_filters.t that is possibly not starting slaves after their masters are restarted. 2012-06-03 16:20:58 -04:00
Daniel Nichter
bdbb66d22b Re-add calls to Sandbox::ok(). 2012-06-03 13:54:32 -04:00
Daniel Nichter
81f3c3c321 Validate --max-load in pt-table-checksum. 2012-05-25 15:34:58 -06:00
Daniel Nichter
d7b9ccf19b Add failing test. 2012-05-18 08:55:58 -06:00
Daniel Nichter
e969d8d9f7 Implement and test --recursion-method=none in MasterSlave.pm and pt-table-checksum. 2012-05-17 08:11:30 -06:00
Daniel Nichter
6d0e207af7 Check if innodb_lock_wait_timeout exists, don't crash. 2012-05-16 17:36:19 -06:00
Daniel Nichter
f4957ba911 Use --chunk-size-limit || 1 for checking if a table can be done in one chunk to avoid chunking empty tables. Checksums for empty tables are now written. 2012-05-10 09:55:42 -06:00
Daniel Nichter
715f0f86e1 Merge fix-undef-arrayref-bug-995274. 2012-05-08 17:02:58 -06:00
Daniel Nichter
9bb2311fc2 Add failing unit test. 2012-05-08 12:07:40 -06:00
Daniel Nichter
1f5245b524 Add failing test. 2012-05-08 11:23:19 -06:00
Daniel Nichter
e2073065b1 EXPLAIN actual ascending nibble query to get MySQL's chosen index, and use that instead of the tool's chosen index. TODO: fix OobNibbleIterator.t and chunk_index.t. 2012-05-04 17:46:34 -06:00
Daniel Nichter
3ebf357a1f Don't crash if innodb_lock_wait_timeout doesn't exist. 2012-05-04 10:09:50 -06:00
Daniel Nichter
7247a3a9ac Test, ensure pt-table-checksum can handle col names with dots. 2012-03-01 08:20:12 -08:00
Daniel Nichter
8e9e8eb7a6 Test and fix space-flattening bug. 2012-02-21 13:22:56 -07:00
Daniel Nichter
df4662ce51 Compare index names lc but save them in their original case. 2012-02-06 13:29:08 -07:00
Daniel Nichter
f517675eb4 Compare lc(index) everywhere. 2012-02-03 11:38:20 -07:00
Daniel Nichter
4607cac898 Fix pt-table-checksum tests for MySQL 5.0. 2012-02-02 11:15:34 -07:00
Daniel Nichter
84929a0408 Test pt-table-chekcsum --where. 2012-01-31 13:09:46 -07:00
Daniel Nichter
9d3c2f5002 Apply --where to chunk size test on replicas. 2012-01-31 12:42:53 -07:00
Daniel Nichter
024906eceb Test bug 819450. 2012-01-31 11:40:24 -07:00
Daniel Nichter
c58dfca1b5 Use latest Quoter::(de)serialize_list() in pt-table-checksum and pt-table-sync. Add more char_chunking.t tests for pt-table-checksum. 2011-12-29 17:25:38 -07:00
Daniel Nichter
56375da166 Make replication_filters.t stable. 2011-12-27 15:11:35 -07:00
Daniel Nichter
e299b877ad Update fnv_64.t and replication_filters.t. 2011-12-27 11:50:33 -07:00
Daniel Nichter
f122861808 Fix --where with one nibble. Update chunk_index.t. 2011-12-27 11:12:40 -07:00
Daniel Nichter
66c0abfe8e Don't reset @crc or @cnt. Docu output of --replicate-check-only. 2011-12-27 10:24:35 -07:00
Daniel Nichter
6fad44d58c Change SQL for --resume last chunk to fix bug 898318. 2011-12-19 15:48:52 -07:00
Daniel Nichter
d3b074b14e Don't ORDER BY in the nibble sql. 2011-12-19 14:25:48 -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
41be2d9e2c Complete --resume tests and fixes. 2011-11-17 11:26:59 -07:00
Daniel Nichter
14dc2366f6 Make explicit --chunk-size disable auto-sizing (set --chunk-time=0). 2011-11-16 11:30:51 -07:00
Daniel Nichter
ef61f734cf Finish updating resume.t to handle OobNibbleIterator. 2011-11-16 11:15:18 -07:00
Daniel Nichter
27456d00b7 Update all tests except resume.t for new OobNibbleIterator. Let NibbleIterator handle resume in pt-table-checksum. 2011-11-15 12:35:44 -07:00
Daniel Nichter
6dd46590e2 Untested but working first attempt to nibble rows below first lower boundary and above last upper boundary. 2011-11-14 17:53:46 -07:00
Daniel Nichter
5465634885 Fix --resume --ignore-tables. 2011-11-08 10:20:59 -07:00
Daniel Nichter
f45003731c Resume from last finished checksum (where master_crc is not null). Use ? for resume queries instead of string literals. Add back '(disables L<"--[no]empty-replicate-table)" to --resume docu. 2011-11-07 11:25:11 -07:00
Daniel Nichter
55111a8861 Add back where01.sql and where02.sql for TableChunker.t. 2011-11-02 09:28:53 -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
70dcdc3292 Add --ignore-tables test. 2011-10-21 10:03:27 -06:00
Daniel Nichter
39a071ebe7 Update fnv_64.t. 2011-10-21 09:41:45 -06:00
Daniel Nichter
5c80f55874 USE repl db when deleting from repl db. Move and update issue_982.t tests to replication_filters.t and remove issue_982.t. 2011-10-20 13:46:33 -06:00
Daniel Nichter
41821380b6 Move oversize_chunks.t tests into basics.t and remove oversize_chunks.t. Remove unused sample files. 2011-10-20 11:54:28 -06:00
Daniel Nichter
e3bc2496c2 Add --retries. Increase ROWS col by 1 char. Update POD. Add --max-load='' in tests until fixed. 2011-10-20 10:55:21 -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
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
c28461aaef Move retry_timeouts.t tests to error_handling.t and remove retry_timeouts.t. Change max_chunk value for checking slave diffs to avoid infinite wait for nonexistent chunks. Use undef instead of 0 for skipped chunks. Make lock wait timeout skipped++ instead of errors++. 2011-10-15 15:45:11 -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
60d8b1a710 Update issue_388.t, issue_47.t, issue_602.t. Rename issue_81.t to error_handling.t. Move issue_69.t tests into basics.t and remove issue_69.t. 2011-10-13 12:46:44 -06:00