Commit Graph

423 Commits

Author SHA1 Message Date
Daniel Nichter
7813aeef55 eval tput which fails if TERM isn't set, like when ran via Jenkins. 2012-07-09 15:59:00 -06:00
Brian Fraser fraserb@gmail.com
c87235b0ff Fix 984915: DSNParser does not check return value of do() calls 2012-06-11 22:02:49 -03:00
Daniel Nichter
18073bd7a2 Remove --[no]zero-bool from pt-query-digest. 2012-06-11 20:43:05 -04:00
Brian Fraser fraserb@gmail.com
bc8f5a610c Change TMPDIR to PT_TMPDIR 2012-06-11 17:51:43 -03:00
Daniel Nichter
bf2a769536 Export TMPDIR to make tmpdir.t pass. 2012-06-11 13:28:14 -07:00
Brian Fraser fraserb@gmail.com
07081d5761 tmpdir.sh: Use the -t flag for mktemp 2012-06-11 17:07:38 -03:00
Daniel Nichter
12f98d771e Merge detect-key-len-with-range-scan. 2012-06-11 13:04:54 -04:00
Daniel Nichter
3f2295ec46 Implement IndexLength in pt-table-checksum and pt-online-schema-change. Tag the IndexLength queries with "key_len" and make n_index_cols optional--get full key_len if not given. 2012-06-11 12:54:26 -04:00
Daniel Nichter
fa9cf03505 Add IndexLength.pm. 2012-06-11 11:47:03 -04:00
Brian Fraser fraserb@gmail.com
87f32cc857 Sandbox.pm: Catch errors from shelled-out commands 2012-06-11 11:50:52 -03:00
Daniel Nichter
583bc2957e Don't crash if N is > number of index columns. 2012-06-11 07:55:23 -04:00
Daniel Nichter
970f7d7e64 Merge ~percona-toolkit-dev/percona-toolkit/explain-checksum-chunks. 2012-06-10 13:25:44 -04:00
Daniel Nichter
272f963733 Remove --chunk-index-columns and extend --chunk-index instead to take INDEX:N value. Add n_index_values to TableNibbler. 2012-06-10 10:01:25 -04:00
Daniel Nichter
2a92a0a0ff Check key_len for each chunk to ensure it doesn't decrease. Add --[no]check-plan. 2012-06-09 22:23:00 -04:00
Baron Schwartz
47fb3d65e8 Fix a bazillion tests with ANSI sql_mode, and get rid of a bunch of MySQLDump usage. 2012-06-09 14:43:33 -04:00
Baron Schwartz
8e9dfeec68 Some fixes for ANSI SQL quotes 2012-06-07 14:53:47 -04:00
Baron Schwartz
f7c97e749e Make TableParser.pm handle ANSI quotes 2012-06-07 00:59:59 -04:00
Brian Fraser fraserb@gmail.com
63b31873e5 PerconaTest::full_output: Fix a bug in the returned status 2012-06-07 17:43:50 -03:00
Baron Schwartz
aa42210f72 Fix a number of SQL queries to work with ANSI_QUOTES 2012-06-06 23:36:07 -04:00
Baron Schwartz
b9304dabb5 Fix a number of SQL queries to work with ANSI_QUOTES 2012-06-06 23:14:20 -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
Brian Fraser fraserb@gmail.com
03a9461daf Removed PerconaTest::{wait_until_no_lag|wait_until_slaves_running}, replaced them with Sandbox::wait_for_slaves 2012-06-07 12:00:40 -03:00
Baron Schwartz
af38351e82 wait for slaves after load_file 2012-06-06 16:32:14 -04:00
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
Brian Fraser fraserb@gmail.com
c2bb24befc Merged lp:~percona-toolkit-dev/percona-toolkit/replace-MKDEBUG 2012-06-06 14:15:05 -03:00
Brian Fraser fraserb@gmail.com
3babaab15a Merged lp:~percona-toolkit-dev/percona-toolkit/pt-osc-cleanup-guards 2012-06-06 11:50:00 -03: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
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
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
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
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
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
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
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
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
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
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
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
0637b85bb3 only commit if not autocommit; fixes some newly broken tests 2012-06-04 10:08:06 -04:00
Baron Schwartz
a074ce0526 Make pt-index-usage commit after saving results to tables, which fixes tests in MySQL 5.5 2012-06-04 08:21:02 -04:00
Brian Fraser fraserb@gmail.com
a3302dde93 Merge the fix for systems that lack sysctl 2012-06-04 12:01:12 -03:00