Commit Graph

1083 Commits

Author SHA1 Message Date
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
Brian Fraser fraserb@gmail.com
865b3e4e9d collect_system_info shouldn't assume that sysctl is available.
It isn't on CentOS 5.5. It didn't really assume that it
was always there, but rather than the produced samples file
would be.
2012-06-04 11:57:44 -03:00
Daniel Nichter
4e90f65736 Make pt-table-checksum/relication_filters.t and progress.t stable. Add PerconaTest::wait_until_no_lag(). Fix sandbox/test-env reset. 2012-06-04 07:33:14 -07: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
Baron Schwartz
48f642551e fix some problems that happen when there are many mysqld instances 2012-06-03 20:53:57 -04:00
Daniel Nichter
2afbe4a729 Handle NAME_lc in Sandbox::wipe_clean(). 2012-06-03 15:04:50 -07:00
Daniel Nichter
e8d9781123 Merge changes. 2012-06-03 14:51:03 -07:00
Daniel Nichter
696a3b5e68 Fix mem/file size shortening in pt-summary and pt-mysql-summary. 2012-06-03 14:49: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
98b384d845 Make pt-stalk/pt-stalk.t stable. Add PerconaTest::not_running(). 2012-06-03 13:29:45 -07: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
a0b54b145d Merge 2.1. 2012-06-03 13:29:02 -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
09ddcd641e Merge advisor-json-output and clean up pt-query-advisor docs. 2012-06-01 09:13:11 -06:00
Brian Fraser fraserb@gmail.com
0b5196a1f1 Merged ~percona-toolkit-dev/percona-toolkit/fix-1003315 2012-05-30 15:52:21 -03:00
Brian Fraser fraserb@gmail.com
8e04e3df60 Fix for 1003315: dry-run + alter-fk-method = auto always fail. 2012-05-30 14:27:07 -03:00
Brian Fraser fraserb@gmail.com
20d6ccff9e Fix for 923896 2012-05-27 23:28:35 -03:00
Daniel Nichter
fcd8958fb7 Validate --max|critical-load early and strongly, and check that the var exists and is defined. 2012-05-25 15:27:23 -06:00
Daniel Nichter
bbe6125d8f Validate --max|critical-load (work in progress). 2012-05-25 12:15:11 -06:00
Daniel Nichter
4b6fe95c6c Handle MySQL 5.5 named values for concurrent_insert. 2012-05-24 14:52:11 -06:00
Daniel Nichter
bb5d64b4a6 Remove \, from any DSN part (value or bareword). Document that DSN values must be escaped. 2012-05-24 11:20:38 -06:00
Daniel Nichter
026d95ac24 Separate DSN parts using escaped commas instead so bareword values work. 2012-05-24 10:56:04 -06:00
Daniel Nichter
15146353f9 Use regex to split DSN parts to allow commas in values. 2012-05-24 10:32:39 -06:00
Daniel Nichter
491c076e75 Implement retry_on_error for Pipeline processes. Retry iteration proc twice, then fail completely. Fix mirror.t. 2012-05-23 16:07:05 -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
e969d8d9f7 Implement and test --recursion-method=none in MasterSlave.pm and pt-table-checksum. 2012-05-17 08:11:30 -06:00
Daniel Nichter
d46285342a Use 6 X with mktemp to make it work on some platforms and update all tools. 2012-05-16 11:38:48 -06:00
Daniel Nichter
350aa3a344 Merge fix-dupe-key-bug-894140. 2012-05-14 19:10:50 -06:00
Daniel Nichter
e932c89d9e Fix bug that caused not all "right keys" to be compared in certain cases. 2012-05-14 19:05:32 -06:00
Daniel Nichter
5a77e8c09c Fix scrolling header for --group-by=all. 2012-05-10 14:06:52 -07:00
Daniel Nichter
1c23b615b2 Add XXX comments where the Perl oddity is being used. 2012-05-10 10:21:44 -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
884d02bc2a Lowercase index from EXPLAIN (unless it's PRIMARY) to match lowercase ident names from TableParser::parser(). 2012-05-08 16:51:35 -06:00
Daniel Nichter
7a7c0fe157 Merge ../fix-ptc-pk-bug-978432. 2012-05-08 12:47:54 -06:00
Daniel Nichter
30b6b88766 Restore original NibbleIterator and implement simpler solution: only use MySQL's chosen index if --where. 2012-05-08 12:43:47 -06:00
Daniel Nichter
cc80f278d5 Code comment why MiB, GiB, etc. are used in shorten() and update that func in pt-summary and pt-mysql-summary. 2012-05-07 16:38:30 -06:00
Daniel Nichter
fdfd305dc5 Simplify and fix report_formatting::shorten(), and add Petabyte unit (in case it's needed). Update affected test samples. Add T_DIR to util/test-bash-functions. 2012-05-07 12:16:24 -06:00