Commit Graph

910 Commits

Author SHA1 Message Date
Daniel Nichter
9e7248861d Catch and report aborted connects. 2013-01-28 14:12:48 -07:00
Daniel Nichter
15b1c43874 Fix and test parser_error_packet() for non-SQL errors. 2013-01-25 11:24:35 -07:00
Daniel Nichter
26cc08d3d9 Fix default log level in log_warn_die.sh. 2013-01-24 11:39:23 -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
11fa16382c Add --verbose to pt-stalk. Change _print() to ts() in log_warn_die.sh. 2013-01-24 09:36:57 -07:00
Daniel Nichter
98ced1a035 Make add info() log_warn_die.sh and make the subs respect OPT_VERBOSE. Add more test harness subs in util/test-bash-functions. 2013-01-24 09:17:19 -07:00
Brian Fraser fraserb@gmail.com
d1bdd4d80c Make pqd --output json have flags to enable sorted keys and prettyfied JSON 2013-01-24 12:00:48 -03:00
Brian Fraser fraserb@gmail.com
9dd124038b pqd: Merge --review-history into --review, added --review-table & --history-table 2013-01-21 12:40:46 -03:00
Daniel Nichter
47f09d427a Merge simplify-pqd r542. 2013-01-18 18:29:38 -07:00
Daniel Nichter
06ce6e012e Fix --resume. 2013-01-18 17:44:07 -07:00
Daniel Nichter
fcb5a0c0f8 Merge lp:~percona-toolkit-dev/percona-toolkit/simplify-pqd r541. 2013-01-18 16:21:10 -07:00
Brian Fraser fraserb@gmail.com
e466408c0d QueryReportFormatter: Resolve a hash ordering issue & fix an error introduced by the refactoring which was breaking two tests: checking if --report-histogram rather than --report-all 2013-01-18 09:47:05 -03:00
Daniel Nichter
f999686610 Fix Lmo::Types in pt-agent. Change Run->queries to query, Maybe[Str]. 2013-01-17 18:21:02 -07:00
Brian Fraser fraserb@gmail.com
41f440518f Fixed the precisions for numbers in the json output 2013-01-17 19:40:58 -03:00
Brian Fraser
1f7e1c12e2 lib/JSONReportFormatter.pm: Change the json output struct to the new spec 2013-01-16 16:46:40 -03:00
Brian Fraser fraserb@gmail.com
e8a8ebbcac Changed the JSON output 2013-01-16 07:59:19 -03:00
Brian Fraser fraserb@gmail.com
1e8e8a8398 Make Transformers work if called with use 2013-01-16 07:56:04 -03:00
Daniel Nichter
8f59c9f357 Change --check-spool to --send-data, and Run->schedule to Run->run_schedule. Add Run->spool_schedule and Run->queries. Remove Service->alias. 2013-01-14 15:02:07 -07:00
Brian Fraser fraserb@gmail.com
3c63750c9b Added JSONReportFormatter, a subclass of QueryReportFormatter that does what it says on the tin. WIP as it does not report profile or prepared statement data yet 2013-01-14 13:20:35 -03:00
Brian Fraser fraserb@gmail.com
5e5763f82a Partially Moified QueryReportFormatter, split event_report and query_report into two different subs; one that gets the values to print, and one that formats things 2013-01-14 12:52:23 -03:00
Brian Fraser fraserb@gmail.com
e5d17af0fe Mo'ified and minimally simplified ReportFormatter 2013-01-14 12:49:55 -03:00
Brian Fraser fraserb@gmail.com
cd32c04ed1 Mo: Added an override() export 2013-01-14 12:48:03 -03:00
Brian Fraser
8e36056359 pq: Remove --for-explain, make it always show the extra info 2013-01-11 15:37:55 -03:00
Brian Fraser
d0d8c59042 pqd: Remove --statistics, --pipeline-profile & --fingerprints, make them part of PTDEBUG 2013-01-11 14:52:42 -03:00
Brian Fraser
4fc66a08d3 pqd: Remove sparklines 2013-01-11 13:45:20 -03:00
Brian Fraser
5495945c7e EventAggregator: Remove apdex code 2013-01-11 13:24:02 -03:00
Brian Fraser
944b2039d3 pqd: Stop reporting apdex scores 2013-01-11 13:20:39 -03:00
Daniel Nichter
a7ed751315 Merge 2.1 at r519 (release-2.1.8). 2013-01-09 08:44:25 -07:00
Daniel Nichter
526437632c Implement and test --check-spool. Make Mock/UserAgent save put and post data in an array. Make Percona/WebAPI/Client accept ready-made text resources, for multi-part resources. 2013-01-08 18:49:42 -07:00
Daniel Nichter
8a4c681050 Merge copyright-percona-ireland-ltd. 2013-01-02 17:54:18 -07:00
Daniel Nichter
feab2f0925 s/Percona Inc/Percona Ireland Ltd/g 2013-01-02 17:19:16 -07:00
Daniel Nichter
0495f9aa8a Test and implement more run_agent(). Fix as_json() for lists of resources. Add alias attrib to Service for its friendly name; make name its code-friendly name. Fix ts in log messages. 2012-12-26 17:44:19 -07:00
Daniel Nichter
66fb54e793 Fix Client to expect X-Percona-Resource-Type else links. Add headers to Mock/UserAgent. Start testing run_agent(). As TO_JSON() magic to Run so encode can encode Service contain blessed Run objs. Use BUILDARGS to convert Run as hashref to real objs. 2012-12-26 13:00:46 -07:00
Daniel Nichter
87080d44b2 Fix WebAPI::Client to always expect links: in reponse. 2012-12-26 09:16:53 -07:00
Daniel Nichter
5051abc7ec Partly working and tested pt-agent. Fix Percona/WebAPI/Client.pm. Add Percona/WebAPI/Util.pm, Percona/Test.pm, and /Test/Mock/UserAgent.pm. 2012-12-25 19:40:42 -07:00
Daniel Nichter
9241c27b7c Almost working pt-agent main process. Clean up HTTP::Micro. Add Percona/WebAPI/Util, and some basic Percona/WebAPI/Representation tests. 2012-12-25 16:51:18 -07:00
Daniel Nichter
6f2d543653 Condense lib/Percona/WebAPI/Representation/* into lib/Percona/WebAPI/Representation.pm since our MO doesn't support roles. Continue building pt-agent. 2012-12-25 12:20:06 -07:00
Daniel Nichter
d035125729 Add headers to Lmo and WebAPI modules, and put the modules in pt-agent. 2012-12-24 18:20:25 -07:00
Daniel Nichter
0083216a6c Use Percona::Toolkit::_d() and Dumper(). Set Lmo::VERSION=0.01. 2012-12-24 14:48:02 -07:00
Daniel Nichter
861cc8fd96 Merge mo-cleanup -r520..524. 2012-12-24 14:41:20 -07:00
Daniel Nichter
5b12357035 Merge Pingback into VersionCheck, but not working yet. Move Percona/HTTP/Mirco to HTTP/Micro. 2012-12-24 14:36:04 -07:00
Daniel Nichter
593e64e6ec Begin to fill in pt-agent. Use new, experimental Percona::Toolkit. Remove Versions resource; add as optional attrib to Agent resource. 2012-12-24 13:17:48 -07:00
Daniel Nichter
93416d4cb6 Skeleton bin/pt-agent and lib/Percona/WebAPI. 2012-12-24 11:24:53 -07:00
Brian Fraser
0ff46fd3da Pushed the lib/Percona/Toolkit.pm version. 2012-12-21 13:11:17 -03:00
Daniel Nichter
e13b480116 Merge remove-3-tools 2012-12-20 17:27:38 -07:00
Daniel Nichter
dad38169bf Remove ndb_binlog_index from auto-skipped sys tables in SchemaIterator because it wasn't previously skipped in 5.1 and 5.5. 2012-12-20 23:05:06 +00:00
Brian Fraser
bae4ce1ce9 pt-fk-error-logger: Deal with 5.6 InnoDB timestamps 2012-12-20 13:55:12 -03:00
Brian Fraser
42484ecd10 Merged mysql-5.6-test-fixes and resolved conflicts 2012-12-19 13:47:54 -03:00
Brian Fraser
dcc66e8a32 Fix for 1087319: Quoter::serialize_list() doesn't handle multiple NULL values 2012-12-12 16:16:14 -03:00
Daniel Nichter
f84ed48707 Remove pt-log-player, pt-tcp-model, and pt-trend. 2012-12-11 18:30:30 -07:00