Commit Graph

68 Commits

Author SHA1 Message Date
Carlos Salguero
e6e54839bf More tests for 5.7 fixed 2017-04-28 17:15:53 -03:00
Carlos Salguero
e4ce711969 PT-96 Fixed tests for SimpleTCPDumpParser 2017-03-09 23:51:59 -03:00
Daniel Nichter
c178934ab1 Combine '# Log_slow_rate_type: query Log_slow_rate_limit: 2' as 'query:2' and report as 'rate_limit' metric. 2013-11-27 18:25:55 -08:00
Daniel Nichter
4805b7b5c8 Note in docs: As of pt-table-checksum 2.2.5, skipped chunks cause a non-zero exit status. Also report skipped chunks due to lock wait timeout and killed query like other skipped chunks. Enhance explanation of SKIPPED column. 2013-10-10 12:21:39 -07:00
Daniel Nichter
b966a0f4a3 Use ps xww because w isn't wide enough on deb with long jenkins paths. 2013-08-10 19:38:34 -07:00
Daniel Nichter
8ec7ccdbe7 Stabilize t/lib/Daemon.t. Add PerconaTest::get_cmd_pid(). 2013-08-10 08:27:09 -07:00
Daniel Nichter
c1cce0c6ca Get and send real program version when the agent starts. 2013-03-21 13:50:49 -06:00
Daniel Nichter
9286765076 Merge 2.2.1 to get pqd without --output json. 2013-03-19 11:36:21 -06:00
Daniel Nichter
270962ad54 Merge 2.2 r551. 2013-03-11 10:51:30 -06:00
Daniel Nichter
828ff38078 Merge clean-up-pqd-2.2. 2013-03-09 10:24:56 -07:00
Brian Fraser
552fddb9a1 PerconaTest: use croak for slurp/load_file 2013-02-28 13:07:52 -03:00
Brian Fraser
4b860cbd7b pqs: Removed tcpdump-errors, made the library always save the errors in a tempfile 2013-02-25 15:59:01 -03:00
Daniel Nichter
e62a02e0d3 Start testing --save-results. Let $cmd be a file in PerconaTest.pm. Remove 'at ... line N' from EventExecutor.pm errors. 2013-02-20 08:27:49 -07:00
Daniel Nichter
dcdeb606c8 Test pt-upgrade host-to-host. Implement diff_query_times(). Export $test_diff from PerconaTest instead of doing diag() in no_diff(). 2013-02-19 17:03:50 -07:00
Daniel Nichter
50a82a4ef8 Merge 2.1.8 and 2.2. 2013-02-05 10:22:31 -07:00
Daniel Nichter
b196f50e60 Test --verbose. Remove global default OPT_VERBOSE from log_warn_die.sh so tool's option can set it. 2013-01-24 11:13:39 -07:00
Daniel Nichter
feab2f0925 s/Percona Inc/Percona Ireland Ltd/g 2013-01-02 17:19:16 -07:00
Daniel Nichter
0083216a6c Use Percona::Toolkit::_d() and Dumper(). Set Lmo::VERSION=0.01. 2012-12-24 14:48:02 -07:00
Brian Fraser
bb47e4cdcc Removed the L option from the dsn_opts exported by PerconaTest, as it was useless and breaking tests, and added an L=1 to a leftover pt-archiver --bulk-insert call 2012-11-07 08:54:39 -03:00
Daniel Nichter
a0cd575c95 Merge fix-1009510-1039569-ptc-check-table-on-replicas 2012-11-05 10:54:21 -07:00
Brian Fraser
b9bfe6114c Merged fix-821715-enable-local-infile-in-dsn 2012-10-30 22:12:57 -03:00
Daniel Nichter
be50548f3b Fix RawLogParser.t. Use diag in PerconaTest.pm. 2012-10-20 13:32:12 -06:00
Brian Fraser fraserb@gmail.com
9e832790f8 LOAD DATA LOCAL INFILE: The hopefully final fix.
This introduces a L option to the DSNs of pt-upgrade and pt-archiver,
which turns on mysql_local_infile.
2012-10-17 19:19:44 -03:00
Brian Fraser
42a344f4cb Updated the 'table has problems in replica' error and other tidbits, per Daniel's review 2012-10-17 17:40:31 -03:00
Daniel Nichter
26ca0281b5 Use --version-check instead (so it's _not_ on by default; it must be specified). 2012-08-29 14:23:41 -06:00
Daniel Nichter
a3950411b9 Add back PerconaTest::slurp_file(). Put in scope in pt-index-usage. Sort MySQL instance IDs for testing. Wait for pid file in pt-heartbeat/basics.t. 2012-08-28 15:28:34 -06:00
Brian Fraser
9f79d4b7ba v-c: Updated to identify and report every instance, and to skip instances already version-checked that day 2012-08-24 19:09:59 -03:00
Brian Fraser
5ddef54fc8 PerconaTest::full_output: Use different files for STDERR and STDOUT to avoid overwriting data 2012-08-23 03:12:21 -03:00
Daniel Nichter
ee583ba729 Add $ENV{PERCONA_VERSION_CHECK}=0 to PerconaTest so tests don't version-check. Implement v-c in half the tools. Make util/update-modules clean up its temp files. 2012-08-21 16:15:44 -06:00
Daniel Nichter
cc3826f665 Fix more test output broken by percona_test.load_data. Tweak ptc/t/privs.t so it passes on my box. Fix new start/stop scripts: don't check ibdata1 because SKIP_INNODB may be used. Make PerconaTest::output() cleaner. 2012-08-01 14:58:52 -06:00
Daniel Nichter
570b26de20 Remove LOAD DATA check from pt-archiver and pt-upgrade. Make test-env check if LOAD DATA works and PerconaTest export . Rewrite how pt-archiver/t/bulk_insert.t conditionalizes on LOAD DATA working. 2012-07-31 15:37:02 -06:00
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