Commit Graph

26 Commits

Author SHA1 Message Date
Daniel Nichter
f4b3bdb88b Use just RAND() instead of RAND() + NOW() to avoid be coerced to an int and therefore not sub-second safe. 2012-06-06 13:52:17 -07: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
Daniel Nichter
14b615ebd9 5s default wait_until() time. Wait 5m instead of 16m for wipe_clean(). Don't connect to slave2 in wipe_clean() any longer. 2012-06-06 11:43:56 -07:00
Baron Schwartz
9865ad451d add sanity checks and slave-lag synchronization to prevent replication breakage, false sandbox breakage, etc. 2012-06-06 04:47:45 -04:00
Daniel Nichter
48677eb4d1 All Test::More::diag() in Sandbox.pm instead of just diag(). 2012-06-05 19:56:46 -07:00
Daniel Nichter
0e4b01bad7 Make wipe_clean() wait until 12347 is clean. Fix ChangeHandler.t, CompareResults.t, and Quoter.t so they leave the dbs clean. 2012-06-05 19:55:03 -07:00
Daniel Nichter
2d7cc5e8a4 Check for leftover databases. Fix MasterSlave.t so it doesn't leave leftover dbs and it resets 12347. 2012-06-05 18:55:32 -07:00
Daniel Nichter
ac620957c9 Print on which host tables are different. 2012-06-05 11:20:18 -07: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
Baron Schwartz
5c23b95072 magic to check that tests didn't muck with test dataset 2012-06-05 03:24:59 -04: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
3a717b645c Sometimes Sandbox.pm tries to kill a connection that's already gone, and that kills the whole test. 2012-06-04 12:08:50 -04:00
Daniel Nichter
7f51c42493 Fix Sandbox::leftover_servers(). Temporarily disable very slow test in pt-table-checksum/chunk_size.t. Debugging pt-table-checksum/replication_filters.t. 2012-06-04 08:24:30 -04:00
Daniel Nichter
2afbe4a729 Handle NAME_lc in Sandbox::wipe_clean(). 2012-06-03 15:04:50 -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
Baron Schwartz
87c8240369 fix problems with sandbox breaking replication and pt-slave-delay 2012-06-03 15:29:35 -04:00
Daniel Nichter
275ae93084 Fix waiting for slave message. 2012-06-03 14:41:29 -04:00
Daniel Nichter
67757bf838 Return false if the slave isn't ok. Use diag() for the waiting for slave message. 2012-06-03 14:21:29 -04:00
Daniel Nichter
e5300c78a0 Check slave threads and read-only in Sandbox::ok(). 2012-06-03 13:09:46 -04:00
Daniel Nichter
d9a786d8f3 Add Sandbox::ok(). 2012-06-03 12:46:12 -04:00
Daniel Nichter
88304e69fb Replace MKDEBUG with PTDEBUG in modules. 2012-01-19 12:46:56 -07:00
Daniel Nichter
b63bc4c26b Convert pt-table-checksum boundaries to SQL WHERE clauses. 2011-12-22 15:43:15 -07:00
Daniel Nichter
b805f7c92d Remove $Revision$ and finish re-branding modules. Rename MaatkitTest.pm to PerconaTest.pm. Put copyrights on one line. 2011-07-12 15:47:07 -06:00
Daniel Nichter
55c69ffbc1 Move module docu to work for NaturalDocs. 2011-07-02 12:29:08 -06:00
Daniel Nichter
82931ec399 Enclose all packages blocks and add Package devel docu. 2011-06-28 17:50:02 -06:00
Daniel Nichter
6c501128e6 Add lib/, t/lib/, and sandbox/. All modules are updated and passing on MySQL 5.1. 2011-06-24 11:22:06 -06:00