Commit Graph

54 Commits

Author SHA1 Message Date
Brian Fraser
0ac09e77b4 Fix 1036747: Remove priv checks from pt-table-sync 2012-08-16 18:06:49 -03:00
Brian Fraser
0d26097f31 t/pt-table-sync/wait.t: use wait_until() instead of sleep() 2012-07-23 13:48:05 -03:00
Brian Fraser
bfa5f488fa Merged new-versionparser 2012-07-20 17:25:10 -03:00
Brian Fraser
c00598d3fb Two VersionParser oversights in pt-table-sync 2012-07-11 16:46:54 -03:00
Brian Fraser
8179b1f1a1 Updated the tests to use the new VersionParser 2012-07-11 15:21:47 -03:00
Daniel Nichter
4c7243d944 Tweak pt-table-sync/replicate_do_db.t to be more stable and give more info when certain tests fail. 2012-07-09 16:54:32 -06:00
Daniel Nichter
17edb54398 Wait for changes to replicate in pt-table-sync/issue_634.t. 2012-06-07 12:45:01 -06:00
Daniel Nichter
fb64cdda99 Wait for changes to replicate in pt-table-sync/bugs.t. 2012-06-07 12:43:18 -04:00
Daniel Nichter
79c716d358 Remove pt-table-sync/issue_79.t (it was broken but coincidentally working) and write better tests in filters.t. Add subs to Sandbox and PerconaTest to clear and parse tables used from the general logs. Set log=genlog in the sandbox configs. 2012-06-07 12:38:45 -04:00
Daniel Nichter
dac0731251 Remove PerconaTest::wait_for_table() after calls to Sandbox::load_file() which now implicitly calls Sandbox::wait_for_slaves(). 2012-06-07 10:25:44 -04:00
Daniel Nichter
6614cae630 Make pt-table-sync/binlog_format.t stable. 2012-06-07 09:30:05 -04:00
Baron Schwartz
7c4b37e2c1 Fix a timing issue in t/pt-table-sync/triggers.t 2012-06-06 13:04:36 -04:00
Baron Schwartz
44970ae99a fix another timing issue in t/pt-table-sync/issue_634.t 2012-06-06 12:58:33 -04:00
Baron Schwartz
671c78c184 fix timing issues with /pt-table-sync/master_master.t 2012-06-06 12:39:52 -04:00
Daniel Nichter
e43b4e15ca Modernize and make pt-table-sync/master_master.t stable. 2012-06-06 22:13:20 -04:00
baron
7a57261843 fix things looking for hardcoded mysqlbinlog path (t/pt-table-checksum/replication_filters.t and t/pt-table-sync/traces.t) 2012-06-06 21:29:34 -04:00
Baron Schwartz
de439e74d8 rewrite t/pt-table-sync/replicate_do_db.t test -- but it's not 100% complete 2012-06-06 08:57:01 -04:00
Daniel Nichter
a178bb32f8 Use md5 "pings" in percona_test.sentinel for sub-second tests that call wipe_clean() twice. Update t/lib/samples/SchemaIterator/all-dbs-tbls-5.0.txt for percona_test.sentinel. Restart slaves in pt-table-checksum/replication_filters.t. Modernize and make pt-table-sync/replicate_do_db.t stable. 2012-06-06 13:31:24 -07:00
Baron Schwartz
a6431b0554 remove nondeterministic/dangerous stuff, do the sync from table to table on the master only, not touching a slave 2012-06-06 06:25:14 -04:00
Daniel Nichter
8d344b421b Skip Daemon.t test that's not reliable, and wait until pid file is gone. Call wipe_clean() in pt-table-sync/bidirectional.t and pt-table-sync/issue_1065.t. 2012-06-06 09:07:43 -07:00
Brian Fraser fraserb@gmail.com
909552bf40 t/pt-table-sync/issue_634.t: Wait for the slave to replicate 2012-06-05 19:27:12 -03:00
Daniel Nichter
3160b70b00 Fix pt-table-sync/issue_1065.t from modifying sakila tables. Add util/diff-and-restart-sandbox. 2012-06-05 15:56:22 -06:00
Brian Fraser fraserb@gmail.com
5d8b2956a0 t/pt-table-sync/triggers.t: Use wait_for_table and wait for both tables to replicate 2012-06-05 15:36:05 -03:00
Daniel Nichter
a44a273800 Revert back to ok() for Sandbox::ok() so tests file don't have to be updated. Shorten verify_test_data_integrity() to verify_test_data(). 2012-06-05 11:02:48 -07:00
Brian Fraser fraserb@gmail.com
1f4d99665f pt-table-sync: Bail out if --lock-and-rename and MySQL <= 5.5 2012-06-05 14:41:36 -03:00
Daniel Nichter
d8d019aecc Make pt-table-sync/issue_79.t stable by waiting for tables to repl to the slave. 2012-06-05 09:07:18 -06:00
Daniel Nichter
1b11b7d7d9 Kill cxn only if using a db in Sandbox::wipe_clean(). Fix pt-duplicate-key-checker/basics.t for 5.0. Make pt-table-sync/lock_and_rename.t more stable. 2012-06-04 18:46:35 -07:00
Baron Schwartz
6cc17a73c2 A few miscellaneous changes, including a fix for metadata locking and wipe_clean in Sandbox.pm 2012-06-03 17:20:12 -04:00
Daniel Nichter
bdbb66d22b Re-add calls to Sandbox::ok(). 2012-06-03 13:54:32 -04:00
Daniel Nichter
46131ee7a4 Unset src tbl_struct when the db or tbl changes. Add test for just --replicate. 2012-05-22 11:47:24 -06:00
Daniel Nichter
ec43d0c0aa Add failing test in bugs.t. 2012-05-22 11:08:20 -06:00
Daniel Nichter
d0d296ee16 Use SchemaIterator for filtering --sync-to-master and --replicate. Return arrayref from TableChecksum::find_replication_differences(). 2012-05-21 15:50:40 -06:00
Daniel Nichter
2c5ea7c49d Failing test for --ignore-tables. 2012-05-21 11:00:36 -06:00
Daniel Nichter
1cd990a0f0 Update SchemaIterator in pt-table-sync. Make the module handle NAME_lc or not. 2012-03-30 18:15:54 -06:00
Daniel Nichter
98885c8150 Make t/pt-table-sync/check_privs.t reliable. 2012-03-30 10:39:16 -06:00
Daniel Nichter
293caf3376 Wait for unstable test. 2012-03-06 13:56:17 -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
8f1e39ae28 Fix t/pt-table-sync/issue_804.t. 2012-02-02 12:23:55 -07:00
Daniel Nichter
520948c14e Update sample files. 2012-01-05 11:54:27 -07:00
Daniel Nichter
f4362cb2e7 Test and fix bug 911996. 2012-01-05 11:46:38 -07:00
Daniel Nichter
d1bd7a9f3b Change MKDEBUG to PTDEBUG. Remove 1.0.2 from release notes. 2011-12-30 09:23:41 -07:00
Daniel Nichter
70d8f08f7b Use sandbox 12348 instead of 12347. 2011-12-22 16:11:16 -07:00
Daniel Nichter
c97e8ec563 Update issue_408.t and update issue_560.t. 2011-12-22 15:50:52 -07:00
Daniel Nichter
b63bc4c26b Convert pt-table-checksum boundaries to SQL WHERE clauses. 2011-12-22 15:43:15 -07:00
Daniel Nichter
1d8da408fc Revert to r243 to undo pt-table-sync changes. 2011-12-22 12:06:25 -07:00
Daniel Nichter
2760322c87 Don't bidi cmp equal rows. Commit if not --lock and using txn. Fix pt-table-sync basics.t. 2011-12-22 12:01:03 -07:00
Daniel Nichter
cfc57c71af Make pt-table-sync --replicate work with pt-table-checksum 2.0. 2011-12-22 10:10:22 -07:00
Daniel Nichter
255b276435 Make pt-table-sync use new NibbleIterator-only TableSyncer, and also use Cxn. 2011-12-21 21:13:19 -07:00
Daniel Nichter
e93381d6b6 Make sandbox scripts simpler and more reliable. Remove "remove" option from stop-sandbox and update tests that used it. 2011-08-23 09:11:00 -06:00
Daniel Nichter
747d63a6d3 Tweak, fix, and add tests so every tool passes. 2011-08-02 16:38:03 -06:00