Commit Graph

1264 Commits

Author SHA1 Message Date
Daniel Nichter
e8eca8dde1 Merge lp:~percona-toolkit-dev/percona-toolkit/pqd-enhanced-resume-file r582. 2013-05-07 20:19:37 -07:00
Daniel Nichter
fc420ea88e Remove code to handle metadata; instead, let tasks handle metadata and simply concat and send any service.meta.* files/values. Prefix run files with a ts to allow for concurrent runs of the same service. 2013-05-01 20:19:42 -07:00
Daniel Nichter
89db22894e Test get_services(). Need to fix/update other tests. 2013-04-19 14:49:01 -06:00
Daniel Nichter
c7c79945f9 Change start_services() to run_services() and make it do triple duty: start, restart, and stop. When a real service is removed, call its stop- meta-service before write_services(). Add run_services_once() for services with the run_once flag. 2013-04-18 18:41:05 -06:00
Daniel Nichter
7cee5a480e Add ts to Service resource. Rewrite how pt-agent handles applying services: use new meta attrib to find real service, then look for start-service and stop-service; schedule anything with a run_schedule or spool_schedule. Remove Percona/WebAPI/Util. 2013-04-18 16:47:15 -06:00
Daniel Nichter
03f8720871 Fix/update init_agent.t and replace_special_vars.t. 2013-04-13 11:55:53 -06:00
Daniel Nichter
a32a583e05 Fix and test error on startup if config file is missing. Refactor run_agent(): move Agent setup stuff into start_agent(). Move related subs next to each other. 2013-04-13 11:27:45 -06:00
Daniel Nichter
2d89fe6163 Update/fix run_agent.t. Set action and link in run_agent() when given test agent. Fix apply_config(): don't die if config file doesn't exist. Expect Config.lib to be set. Fix run_service(): run run_once services without meta or syncing time interval. 2013-04-13 10:24:52 -06:00
Daniel Nichter
3d5325ae03 Rewrite Daemon.pm: don't require an OptionParser, one public func, run(), that does the whole daemonize process or just check the PID file. 2013-04-05 12:16:16 -06:00
Daniel Nichter
afa6533f43 Fix and test resource_diff(). 2013-03-27 11:12:38 -06:00
Daniel Nichter
bf1cee02cf Re-enable tmpdir auto cleanup. 2013-03-25 14:54:17 -06:00
Daniel Nichter
bdc3487919 Add and test start_services() for Service.run_once_on_start. 2013-03-25 14:27:53 -06:00
Daniel Nichter
c1cce0c6ca Get and send real program version when the agent starts. 2013-03-21 13:50:49 -06:00
Daniel Nichter
0e9e897791 Use 'Content-Type: multipart/form-data; boundary=Ym91bmRhcnk' to send multi-part data. 2013-03-21 07:52:21 -06:00
Daniel Nichter
cf0342c69e Implement and test running queries for tasks. 2013-03-19 18:17:24 -06:00
Daniel Nichter
846daa6c31 Fix/update/test sending data. Rename query-monitor to query-server in tests. 2013-03-19 16:35:37 -06:00
Daniel Nichter
5a65305a47 Update pt-agent to run tasks not runs. 2013-03-19 15:37:55 -06:00
Daniel Nichter
9afa462cc2 Fix/update t/pt-agent/run_agent.t. 2013-03-19 14:56:53 -06:00
Daniel Nichter
70c28272a7 Fix/update t/pt-agent/init_agent.t. 2013-03-19 14:44:02 -06:00
Daniel Nichter
2291a3c6c6 Update Lmo in pt-agent. Start fixing pt-agent tests. 2013-03-19 12:10:22 -06:00
Daniel Nichter
f353600076 Merge release-2.2.1 to get Lmo with headers. 2013-03-19 11:56:17 -06:00
Daniel Nichter
9286765076 Merge 2.2.1 to get pqd without --output json. 2013-03-19 11:36:21 -06:00
Brian Fraser
f591534a1b Merged lp:~percona-toolkit-dev/percona-toolkit/pt-heartbeat-read_only-28934 2013-03-15 15:10:24 -03:00
Daniel Nichter
84ab975438 Fix query time diff formatting in pt-upgrade. 2013-03-14 09:20:54 -06:00
Daniel Nichter
927a3b2ed1 Test bug 942377. 2013-03-13 16:54:53 -06:00
Brian Fraser
d3612481c2 Merged remove-ptqa 2013-03-13 16:55:22 -03:00
Brian Fraser
ea90c02b72 Fixed assorted test failures 2013-03-13 16:49:44 -03:00
Daniel Nichter
5ddfb95ca7 Fix lib/Cxn.pm that didn't merge correctly. Fix t/lib/OptionParser.t test failure. Update Cxn, OptionParser, and DSNParser in all tools. 2013-03-13 12:38:45 -06:00
Brian Fraser
8dba4e5ef8 Removed t/lib/QueryAdvisorRules.t 2013-03-13 12:30:44 -03:00
Brian Fraser
901a964713 Fix t/lib/Advisor.t 2013-03-13 12:21:14 -03:00
Brian Fraser
55bb01bb6e Removed pt-query-advisor 2013-03-13 11:50:08 -03:00
Daniel Nichter
d0c40f0a65 Merge fix-1086018-pt-config-diff-wsrep_provider_options. 2013-03-12 09:29:18 -06:00
Daniel Nichter
2670850a70 Functional test and fix query time diffs. 2013-03-11 19:23:02 -06:00
Daniel Nichter
b2809f2a0c Fix and test UpgradeResults::format_query_times001(). 2013-03-11 18:51:43 -06:00
Daniel Nichter
51af4bde2f Fix --progress. 2013-03-11 17:38:42 -06:00
Daniel Nichter
d66be7558a Test --run-time and --progress. 2013-03-11 17:12:43 -06:00
Daniel Nichter
3c07da8499 Test and fix all the log --types. Add backwards-compat null_event arg to MySQLProtocolParser. 2013-03-11 16:13:38 -06:00
Daniel Nichter
f00d53adc3 Fix and test read-only handling in QueryIterator. 2013-03-11 14:28:39 -06:00
Daniel Nichter
2463344060 eval the critical parts. Use specific exit codes. Add --run-time, --progress, --continue-on-error, and --defaults-file. Uncomment the version check call. Update the docs. 2013-03-11 13:28:41 -06:00
Daniel Nichter
270962ad54 Merge 2.2 r551. 2013-03-11 10:51:30 -06:00
Daniel Nichter
9a33090514 Fix diff_warnings.t for MySQL 5.0. 2013-03-11 10:24:16 -06:00
Daniel Nichter
2aa2176fdd Make tests start up host2. 2013-03-11 10:05:04 -06:00
Daniel Nichter
e3346332e1 Merge pt-ms-pt-stalk-standard-mysql-options. 2013-03-09 11:57:41 -07:00
Daniel Nichter
828ff38078 Merge clean-up-pqd-2.2. 2013-03-09 10:24:56 -07:00
Daniel Nichter
720405d0ed Merge latest. 2013-03-08 13:02:54 -08:00
Daniel Nichter
3f0473052c Fix pt-hb/pxc.t so it's not thrown off by previous tests. 2013-03-08 13:01:19 -08:00
Daniel Nichter
1de56cd6ab Merge latest. 2013-03-08 13:29:53 -07:00
Daniel Nichter
f616c43734 Add diag output to pt-hb/pxc.t. 2013-03-08 13:29:02 -07:00
Daniel Nichter
e5e6b1d9b9 Fix pt-heartbeat/pxc.t. Exit early in test-env if wget fails. Add APP=FORK|mysql to start-sandbox so it too works around the pxc mysqld -V bug; add FORK=pxc to start_sandbox() calls. 2013-03-08 10:07:05 -08:00
vagrant
664449b153 Do not 'REPLACE INTO percona_test.sentinel' in start-sandbox because it doesn't work with RBR. Fix pt-table-checksum/pxc.t re this, and make pt-osc/pxc.t better re this. 2013-03-07 13:17:01 -08:00