Commit Graph

37 Commits

Author SHA1 Message Date
Brian Fraser
9ae940cd76 PerconaTest: Add load_data_is_disabled and correct full_output
load_data_is_disabled checks if LOAD DATA LOCAL INFILE is disabled;
it'll be used in the future by a couple of tests.
  
full_output was changed to use two different filehandles for STDOUT
and STDERR; THis is because otherwise, code closing STDOUT (like
the --quiet option in pt-osc) would also accidentally close STDERR.
2012-07-11 17:29:04 -03: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
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
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
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
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
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
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
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
98b384d845 Make pt-stalk/pt-stalk.t stable. Add PerconaTest::not_running(). 2012-06-03 13:29:45 -07: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
Daniel Nichter
afd0b2a713 Merge lp:~percona-toolkit-dev/percona-toolkit/collect-without-stalking. 2012-03-02 08:16:55 -08:00
Daniel Nichter
cd17a20119 Add and test --[no]stalk to pt-stalk. Fix ps in pt-stalk tests. Add PerconaTest::wait_for_sh(). 2012-02-16 13:32:46 -07:00
Daniel Nichter
815b406a40 Add PTDEVDEBUG statements to PerconaTest::wait_for_table(). 2012-02-14 12:48:24 -07:00
Daniel Nichter
da051b3371 Conditionalize IO::Uncompress::Inflate test. Make test names shorter, uniform. 2012-02-14 11:19:23 -07:00
Daniel Nichter
c67adc1a8f More Daemon debugging. 2012-02-14 10:20:40 -07:00
Daniel Nichter
e9f6325592 Add hires timestamp to PTDEVDEBUG. Debug daemonize.pl. Make wait_until() defaults shorter. 2012-02-14 09:31:47 -07:00
Daniel Nichter
c943f7a0da Debug Daemon.t failures. 2012-02-14 08:58:10 -07:00
Daniel Nichter
88304e69fb Replace MKDEBUG with PTDEBUG in modules. 2012-01-19 12:46:56 -07:00
Daniel Nichter
cf10e3e521 Merge lp:~percona-toolkit-dev/percona-toolkit/pt-table-checksum-2.0. 2011-12-29 17:39:26 -07:00
Daniel Nichter
06b99e987c Don't checksum 1=1 on master if table on slave is too large. 2011-11-17 13:15:26 -07:00
Daniel Nichter
2f9ab4081a Fix prepared report for statements without corresponding prep or exec. 2011-11-08 12:53:50 -07:00
Daniel Nichter
c4db7c0633 Test and fix very small --chunk-time. Report immediately when a slave is stopped. Add short form -q for --quiet. Report very slow checksums once for each table. Use Cxn::name() instead of Cxn::dsn()->{n}; remove n from DSNParser; make cxn's name @@hostname by default, else stringified DSN parts. 2011-10-19 11:27:19 -06:00
Daniel Nichter
23e9b91d78 Update replication_filters.t and resume.t. 2011-10-15 15:03:25 -06:00
Daniel Nichter
4ad88ddd93 Update progress.t, option_sanity.t, and standard_options.t. Make test env always have slave2 (12347, slave of 12346). Add PerconaTest::count_checksum_results(). Add util/wait-to-exec. 2011-10-14 11:45:11 -06:00
Daniel Nichter
b3cfd659b1 First basic tests. Reset global var. Add post_pipeline to PercoaTest::no_diff(). 2011-09-29 17:54:38 -06:00
Daniel Nichter
2c7257caff More stabilizing Daemon.t. 2011-08-24 11:20:27 -06:00
Daniel Nichter
743f29155b Rewrite pt-log-player player.t. 2011-07-14 11:52:13 -06:00
Daniel Nichter
31398457f4 Fix pt-log-player tests. 2011-07-14 11:37:49 -06:00
Daniel Nichter
7526f97224 Fix and make tests more reliable. 2011-07-14 11:05:05 -06:00
Daniel Nichter
db76b3ca30 Make pt-archiver tests more reliable on weird, slow boxes like my vbox. 2011-07-14 09:57:16 -06:00
Daniel Nichter
b4b5f3d7b0 Fix pt-fifo-split.t. Remove db and tbl progress from pt-index-usage until those can be implemented in SchemaIterator. Use new Schema and SchemaIterator in pt-index-usage. Add PerconaTest.pm (copy of MaatkitTest.pm). 2011-07-13 11:30:03 -06:00