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
Brian Fraser
2d78170c7a
Merged fix-1078887-DSNParser-set-vars-sql_mode-clobber
2012-12-11 11:48:44 -03:00
Brian Fraser
0681986dee
Merged fix-1022622-ptcd-case-sensitivity
2012-12-11 11:45:29 -03:00
Daniel Nichter
ec4be9a883
Add and fix test case for special 'no query' events.
2012-12-10 18:07:36 -07:00
Daniel Nichter
fd6eef65c8
Merge fix-genlog-db-bug
2012-12-10 16:41:11 -07:00
Brian Fraser
9f4ce57301
Add a missing .* to the backtracking explosion fix for 823431
2012-12-07 19:20:29 -03:00
Daniel Nichter
ea526799d3
Merge trunk r487.
2012-12-07 11:52:33 -07:00
Daniel Nichter
97e0529798
Rewrite t/pt-archiver/standard_options.t to make it reliable.
2012-12-06 10:02:24 -07:00
Brian Fraser fraserb@gmail.com
4eaf6e51f8
Merged experimental-fix-986847-pt-stalk-set-command
2012-12-05 21:15:20 -03:00
Brian Fraser fraserb@gmail.com
f8c7c7f2d4
Merged fix-1015590-pt-mysql-summary-percona-server-5.5
2012-12-05 21:10:22 -03:00
Brian Fraser fraserb@gmail.com
f2fdc7dd13
Merged fix-1007938-mysqlconfig-eol-comments
2012-12-05 20:43:40 -03:00
Brian Fraser fraserb@gmail.com
d24f054649
Merged fix-937234-pqa-wrong-res.001
2012-12-05 20:35:14 -03:00
Brian Fraser fraserb@gmail.com
d5d90dad00
Merged fix-911385-schemaiterator-resume-plus-ignore-db
2012-12-05 20:30:29 -03:00
Brian Fraser fraserb@gmail.com
fa27779126
Merged fix-823431-pqa-hangs-large-query
2012-12-05 20:27:30 -03:00
Daniel Nichter
dd333380f2
Ignore the new 5.6 mysql stats tables in SchemaIterator and update that module in all tools and updated affected samples.
2012-12-05 18:27:12 +00:00
Brian Fraser fraserb@gmail.com
3d263dd6ed
Merged fix-1007938-mysqlconfig-eol-comments, resolved conflicts
2012-12-05 14:46:32 -03:00
Brian Fraser fraserb@gmail.com
b6c9748656
Merged pxc-pt-mysql-summary
2012-12-05 13:57:13 -03:00
Daniel Nichter
0b25accdf6
Merge trunk r478.
2012-12-04 16:54:50 -07:00
Brian Fraser
d2f1742606
Merged fix-917770-pt-config-diff-uninit-value-crash
2012-12-04 13:43:40 -03:00
Brian Fraser
a5d1021367
Rename "Cluster" to "Cluster Name" and "Node" to "Node Name"
2012-12-04 13:26:34 -03:00
Brian Fraser
15855fb076
Change feat_on_renamed() per Daniel's feedback
2012-12-04 13:17:58 -03:00
Brian Fraser
a7a0da3bc9
Refactor _parse_varvals.
...
Now it takes two arguments: A regexp and a string to match against.
_parse_varvals itself was split in three: _preprocess_varvals,
_parse_varvals, and _process_val.
This also modifies the three places that call _parse_varvals; For
two, no real changes were needed, but parse_mysqld() required a fix
to deal with the two final lines of mysqld --help --verbose:
To see what values a running MySQL server is using, type
'mysqladmin variables' instead of 'mysqld --verbose --help'.
2012-12-04 05:02:56 -03:00
Brian Fraser
ee607b1f25
Change the ordering in the PXC section
2012-12-04 00:39:34 -03:00
Daniel Nichter
e7c3e908bb
Create percona_test.sentinel in start-sandbox so wait_for_slave() works for other sandboxes. skip_all for skip_innodb.t with 5.6 because of http://bugs.mysql.com/67798 .
2012-12-04 00:14:20 +00:00
Brian Fraser
d98f8e04c9
Fix for 1078887: Don't clobber the sql_mode set by the script with set-vars
2012-12-03 00:43:10 -03:00
Brian Fraser
a3527f748c
Fixed the Smooth Flushing report on 5.1, which was broken by the previous commit, and made it work on 5.5
2012-11-30 18:17:30 -03:00
Brian Fraser
76a010abee
Fix for 917770: Use of uninitialized value in substitution (s///) at pt-config-diff line 1996
...
This turned out to be two bugs mangled into one.
First, _parse_varvals can deal with (var, undef), but not with (undef).
This is a problem because two of the trhee spots that call
_parse_varvals can return undef because of this:
map { $_ =~ m/^([^=]+)(?:=(.*))?$/ }
grep { $_ !~ m/^\s*#/ } # no # comment lines
split("\n", $mysqld_section)
The problem is twofold. First, we are not skipping empty or
whitespace-only lines. That means that the map will fail,
and pass an undef to _parse_varvals. So this ended up in
a triple fix: Make _parse_varvals deal with a sole undef,
skip empty/whitespace lines, and change that map to
map { $_ =~ m/^([^=]+)(?:=(.*))?$/ ? ($1, $2) : () }
so even if the regex fails in the future, no sole undef
will be passed down the chain.
2012-11-30 16:17:45 -03:00
Daniel Nichter
72a129bce1
Add is_cluster_mode() to lib/Sandbox.pm.
2012-11-30 18:13:04 +00:00