Daniel Nichter
523a74da36
More debug hacks.
2012-08-15 12:27:37 -06:00
Daniel Nichter
d00702f193
Even more debug hacks.
2012-08-15 11:54:01 -06:00
Brian Fraser
d2b854cd9d
CleanupTask: Restore STDERR and STDOUT to what they were when the object was created
2012-08-15 14:00:52 -03:00
Daniel Nichter
4e4a28bff6
Debug hack for ReadKeyMini::cooked().
2012-08-15 10:31:18 -06:00
Daniel Nichter
3602bb252f
Use non-Bashism indirect reference in parse_options. Change $@ to ${@:-} and update parse_options in all tools.
2012-08-14 11:46:47 -06:00
Daniel Nichter
9ddf90eeca
Use ${@:-""} rather than $@, prevents error on ksh when no opts given. Remove set +u to see if it is no longer needed.
2012-08-14 11:07:10 -06:00
Daniel Nichter
b5ba79bb6d
Collect df -k instead of df -h. Set log_error with abs path to fix failing t/lib/bash/collect.t test.
2012-08-14 09:11:41 -06:00
Brian Fraser fraserb@gmail.com
7f9f84a6d0
shell tools: Quote the arguments to tr
2012-08-13 12:23:18 -03:00
Brian Fraser
c08c0c6a7a
Fix for 1035311: pt-diskstats shows wrong device name
2012-08-10 15:36:34 -03:00
Daniel Nichter
cdc51df9e6
Fix HTTPMicro POST: attach content to request. Validate type.
2012-08-10 11:00:26 -06:00
Daniel Nichter
70c295bc0a
Make Pingback::pingback() do all the work, return list of advices (suggestions). More Pingback tests. Rename --check-for-updates to --version-check and document. Make VersionCheck::parse_server_response() optionally not split vars, so the same proto can be used for server advice lines.
2012-08-09 16:44:47 -06:00
Brian Fraser
1370490fb6
Reduce the timeout to 5 seconds
2012-08-09 17:53:35 -03:00
Brian Fraser
c7060a99a7
Add ping_for_updates(), send the X-Percona-Toolkit-Tool header, and fix an error in pingback()
2012-08-09 17:38:39 -03:00
Brian Fraser
4a04837378
Updated t/lib/Pingback.t to use the new type names
2012-08-09 16:45:29 -03:00
Daniel Nichter
d8bb594059
Clean up Pingback.pm, make it encode the client response correctly, and abstract and rewrite the tests.
2012-08-09 12:47:30 -06:00
Brian Fraser
357fff7153
VersionCheck: Update to newest spec and add get_bin_version()
2012-08-09 15:33:42 -03:00
Brian Fraser
5281e109e9
Updated Pingback.pm
2012-08-09 12:15:55 -03:00
Brian Fraser
437503d94b
Merged VersionCheck
2012-08-09 11:31:55 -03:00
Brian Fraser
475af27724
Merged HTTP::Micro
2012-08-09 11:31:23 -03:00
Brian Fraser fraserb@gmail.com
9d33a8e2aa
Removed ssl support
2012-08-09 11:14:51 -03:00
Daniel Nichter
ff7aebaa0e
Coerce PERL_VERSION with %vd to fix 5.8.
2012-08-08 15:23:52 -06:00
Daniel Nichter
7f0b962489
Fix Debian version parsing in get_os().
2012-08-08 14:08:26 -06:00
Brian Fraser fraserb@gmail.com
49bf177b6a
Magic tags and copyright
2012-08-08 16:54:20 -03:00
Brian Fraser fraserb@gmail.com
028fa7a047
Added HTTP::Micro.
...
This is an extremely stripped down HTTP::Tiny, i.e. not comformant
with HTTP/1.1. Basically only GET and POST should work, and
only for explicit content-lengths; chunking is not implemented.
2012-08-08 16:45:28 -03:00
Daniel Nichter
b4dce00639
Stringify Perl vars so $PERL_VERSION isn't an object. Diag the versions so I can see the real results.
2012-08-08 12:57:47 -06:00
Daniel Nichter
5b5c75ba3b
Test get_os().
2012-08-08 12:53:14 -06:00
Daniel Nichter
5abd7f2d97
Fix and clean up get_os().
2012-08-08 12:38:37 -06:00
Daniel Nichter
07237162f7
First VersionCheck.pm prototype.
2012-08-08 11:36:49 -06:00
Brian Fraser fraserb@gmail.com
58647e8b42
Add lib/Pingback.pm and tests
2012-08-07 18:08:51 -03:00
Brian Fraser fraserb@gmail.com
d77a3a19f6
Fix for 1028710: floor() fails on floor(log(1000)/log(10))
2012-08-06 11:37:51 -03:00
Brian Fraser
ab8d26df4b
Merged fix-883098-extra-processlist-fields
2012-08-02 15:12:59 -03:00
Brian Fraser
ce0ec9d4bd
Merged fix-doc-bugs-1016127-934310-937225-1016114
2012-08-02 15:10:45 -03:00
Daniel Nichter
c80123f485
Merge fix-953141-recursion-method-array
2012-08-02 12:01:34 -06:00
Daniel Nichter
e6d31a666a
Rewrite how MasterSlave handles --recursion-methods.
2012-08-02 10:57:36 -06:00
Brian Fraser
fdb81f763d
Merged fix-1007938-mysqlconfig-eol-comments and fixed it to only take # as a start of comment, and to respect quoted values
2012-08-02 12:21:59 -03:00
Brian Fraser
94a5d85212
Fix for 1016131: ptc should skip tables when all its columns are excluded
2012-08-02 11:29:57 -03:00
Brian Fraser
840ea44e71
Fix for 1016127: DBD::mysql install hint for OpenSolaris
2012-08-02 09:52:42 -03:00
Brian Fraser fraserb@gmail.com
654ebacf1c
Fix for 883098: Extra processlist fields causing errors
2012-08-01 18:43:03 -03: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
Brian Fraser fraserb@gmail.com
a25b9eab40
MasterSlave: Rework how the recursion methods are checked & resolved
...
In part by removing the OptionParser usage out from get_slaves
and recurse_to_slaves and making them expect arrayrefs, thus
forcing our callers to deal with that, and in part by
splitting out the method-checking to MasterSlave::check_recursion_method
and the resolving (originally in find_slave_hosts) into
_resolve_recursion_methods.
2012-08-01 17:39:12 -03:00
Brian Fraser fraserb@gmail.com
ad46ec779e
Merged fix-889739-pt-cd-quoted-strings and added the new sample files
2012-08-01 15:02:28 -03:00
Brian Fraser fraserb@gmail.com
dd14121c28
Merged fix-903510-pt-tcp-model-empty-requests-file
2012-08-01 14:56:10 -03:00
Brian Fraser fraserb@gmail.com
39ed356b50
Merged fix-977226-pt-summary-lsi-raid
2012-08-01 14:51:10 -03:00
Brian Fraser fraserb@gmail.com
66d6ed75c0
Merged fix-844880-variableadvisor-bin_log-checks
2012-08-01 14:47:50 -03: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 fraserb@gmail.com
ba6253545d
Merged fix-821703-processlist-null-state
2012-07-30 16:48:15 -03:00
Brian Fraser fraserb@gmail.com
3b1f3dbbe5
Fix for 977226: pt-summary doesn't detect LSI RAID control. Patch provided by Dave Juntgen (djuntgen)
2012-07-30 12:36:55 -03:00
Brian Fraser fraserb@gmail.com
b93856a37d
Fix for 903510: pt-tcp-model throws an error in --type=requests mode on empty file
2012-07-30 11:52:53 -03:00
Brian Fraser fraserb@gmail.com
4c5678876d
Fix for bug 889739: pt-config-diff doesn't diff quoted strings properly
2012-07-30 11:50:42 -03:00
Brian Fraser fraserb@gmail.com
43708d7b65
VariableAdvisorRules: Check that log_bin is ON instead of doing log_bin ? 1 : 0
2012-07-30 11:44:28 -03:00