Commit Graph

1177 Commits

Author SHA1 Message Date
Brian Fraser fraserb@gmail.com
0dc793dc9d Updated samples for t/pt-table-checksum/basics.t on 5.1 2012-06-06 13:45:30 -03: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
baron
dcf2268514 Change precision/scale/size for decimal type based on DBD::mysql version 2012-06-06 10:51:25 -04:00
Baron Schwartz
1a40d1301f Make sandbox servers log their actions, remove test-env reset from pt-table-checksum/basics.t to stop replication breakage 2012-06-06 00:57:19 -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
4c57313785 Make ChangeHandler.t clean up its dbs on slave1 and slave2. 2012-06-05 19:02:15 -07:00
Daniel Nichter
e960fcb8bc Make ChangeHandler.t clean up its dbs. 2012-06-05 19:00:25 -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
Brian Fraser fraserb@gmail.com
e57b67f10e Cxn & pt-osc: Guard the cleanup tasks.
Does this twofold: By adding a __DIE__ hook to make sure they are
called, and by checking that the dbh is an actual database handle.
2012-06-05 16:24:32 -03:00
Brian Fraser fraserb@gmail.com
c4a8a67204 t/lib/SchemaIterator.t: Update the samples and skip the percona_test db when applicable 2012-06-05 16:01:37 -03:00
Daniel Nichter
04d6a51074 Fix TableParser.t modifying mysql.user and mysql.db, and pt-online-schema-change/basics.t modifying mysql.proc. 2012-06-05 11:51:33 -07: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
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
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
b96e43419f Merge ~percona-toolkit-dev/percona-toolkit/fix-ptc-checksum-tbl-bug-1008778. 2012-06-05 13:08:21 -04:00
Daniel Nichter
bb2fd381d3 Fix, simplify, enhance, and make pt-table-checksum/throttle.t stable. 2012-06-05 12:59:20 -04:00
Daniel Nichter
4f83cf4102 Wait for --replicate table to repl on all slaves. Add wait_for arg to PerconaTest::full_output(). 2012-06-05 12:29:26 -04:00
Baron Schwartz
649ee2c301 sleep 3 when --run-time 2, otherwise we get spurious failures 2012-06-05 11:56:56 -04:00
Daniel Nichter
7f8d07a615 Mke pt-online-schema-change/privs.t stable by waiting for drop user to replicate. 2012-06-05 15:53: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
b4c4c2c85e Fix pt-table-checksum/basics.t to work with new percona_test db. 2012-06-05 15:00:25 -07:00
Brian Fraser fraserb@gmail.com
9fb8601267 t/pt-table-checksum/replication_filters.t should account for percona_test 2012-06-05 18:57:25 -03:00
Daniel Nichter
4fbecaa3d3 Fix pt-table-checksum/privs.t so it doesn't break the sandbox. 2012-06-05 13:35:17 -07: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
345a21a82e Replace the last instances of MKDEBUG 2012-06-05 12:28:36 -03:00
Brian Fraser fraserb@gmail.com
6b93d51e43 ReadKeyMini: Restore STDIN flags in cooked()
This will probably resolve bug #946707: pt-sift loses STDIN after pt-diskstats
2012-06-05 12:16:49 -03:00
baron
4906b52d3b Make sure t/pt-slave-delay/auto_restart.t doesn't break replication on 12347 after restarting 12346; silence some noise from t/lib/MasterSlave.t when it restarts instances (mysqld will print warnings about thread_stack on mysql5.0) 2012-06-05 10:58:59 -04:00
baron
95f7e53feb simplify and clean up sandbox/test-env a little, also helps prevent error messages like this when running test-env: [Warning] option 'thread_stack': unsigned value 126976 adjusted to 131072 2012-06-05 10:22:04 -04:00
Brian Fraser fraserb@gmail.com
422308ffc5 t/pt-query-digest/read_timeout.t: Make the tests slightly more forgiving for slow computers 2012-06-05 11:04:10 -03:00
Brian Fraser fraserb@gmail.com
a00542aec8 t/pt-diskstats/pt-diskstats.t: Make sure the STDIN magic doesn't leak out 2012-06-05 10:59:42 -03:00
Baron Schwartz
cbcab879c5 fix the magical data integrity test at the bottom of t/pt-slave-delay/auto_restart.t 2012-06-05 05:38:49 -04:00
Baron Schwartz
5c23b95072 magic to check that tests didn't muck with test dataset 2012-06-05 03:24:59 -04:00
Brian Fraser fraserb@gmail.com
6ede613752 VersionParser: Allow laxer version numbers, introduce the other cmp methods. 2012-06-05 13:50:41 -03:00
Baron Schwartz
bac1dad82e Add a check that sandbox servers are OK 2012-06-05 00:21:06 -04:00
Baron Schwartz
2d33ba23dc Attempt to avoid race condition in t/pt-table-checksum/progress.t by slowing down the checksum job slightly, but this is a TEST_WISHLIST PLUGIN_WISHLIST and this test goes onto the spreadsheet of unreliable tests. 2012-06-05 00:09:31 -04: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
Brian Fraser fraserb@gmail.com
b2312e068f SchemaIterator: Use different test files for 5.1 and 5.5 2012-06-04 23:24:50 -03: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
Baron Schwartz
48fc1f82a7 Add version-specific results for mysql5.5 2012-06-04 12:04:16 -04:00
Baron Schwartz
af6d7e62ae update pt-stalk test so it works more reliably when passwordless login is set up, and so the cycle-count test is OK with nondeterminism of +/- 1 second 2012-06-04 11:53:44 -04:00
Brian Fraser fraserb@gmail.com
22de87c4eb t/lib/SchemaIterator.t: Ignore commas at the end of statements 2012-06-04 22:15:04 -03:00
Baron Schwartz
56e20d269a Add another test for reconnect, and fix failure/race condition in pt-slave-delay 2012-06-04 11:33:06 -04:00
Brian Fraser fraserb@gmail.com
9aaafe8478 PerconaTest: Stop no_diff from mistakenly unlinking samples 2012-06-04 21:57:58 -03:00
Brian Fraser fraserb@gmail.com
939e9a84b6 t/lib/SchemaIterator.t: Samples for 5.5 and more robust fix for the ordering issue. 2012-06-04 21:48:55 -03:00
Brian Fraser fraserb@gmail.com
0c32f69ee0 PerconaTest: Split slurp_file out of load_file, also changes to no_diff.
The no_diff changes introduce two new transformation options,
and also add a diag with the diff if there was one.
2012-06-04 21:47:18 -03:00
Baron Schwartz
e9e8285b54 pt-slave-delay doesn't reconnect reliably, this is a start 2012-06-04 11:10:41 -04:00
Baron Schwartz
7840006654 average row size is more variable than we used to believe 2012-06-04 10:33:07 -04:00