lp://staging/~percona-toolkit-dev/percona-toolkit/enable-version-check-by-default
Major changes to VersionCheck.pm:
1) No more $self anywhere. The entire package is procedural.
2) version_check() adds a special instance for the system with id=0.
3) Because of #2, there's no need to check the vc file's mtime; we only need to check every line, i.e. every instance. in the vc file.
4) The vc file is now gotten via version_
5) get_perl_
6) If IO::Socket::SSL is installed, we use https; else, use http. Trying both protocols could result in a double wait if https works but v.percona.com isn't responding, in which case, since we don't see what the error is/was, we would blindly try http too when it has no chance of succeeding either. So: 1 protocol, 1 chance at success.
7) Removed PTVCDEBUG and added PTDBUG_
- Get this branch:
- bzr branch lp://staging/~percona-toolkit-dev/percona-toolkit/enable-version-check-by-default
Branch merges
- Daniel Nichter: Approve
- Brian Fraser (community): Approve
-
Diff: 16013 lines (+5700/-6316)24 files modifiedbin/pt-archiver (+263/-301)
bin/pt-config-diff (+263/-299)
bin/pt-deadlock-logger (+263/-300)
bin/pt-diskstats (+265/-299)
bin/pt-duplicate-key-checker (+264/-300)
bin/pt-find (+264/-301)
bin/pt-fk-error-logger (+263/-300)
bin/pt-heartbeat (+264/-301)
bin/pt-index-usage (+263/-300)
bin/pt-kill (+263/-300)
bin/pt-online-schema-change (+269/-302)
bin/pt-query-advisor (+263/-300)
bin/pt-query-digest (+263/-300)
bin/pt-slave-delay (+270/-303)
bin/pt-slave-restart (+266/-301)
bin/pt-table-checksum (+263/-300)
bin/pt-table-sync (+276/-314)
bin/pt-upgrade (+269/-302)
bin/pt-variable-advisor (+263/-300)
lib/Percona/Toolkit.pm (+1/-1)
lib/VersionCheck.pm (+303/-308)
t/lib/VersionCheck.t (+161/-169)
t/pt-archiver/version_check.t (+97/-47)
t/pt-query-digest/version_check.t (+101/-68)
Branch information
- Owner:
- Percona Toolkit developers
- Status:
- Merged
Recent revisions
- 534. By Daniel Nichter
-
Simplify checking for .bzr/ to auto-disable --version-check in dev and test envs. Update t/pt-archiver/
version_ check.t. Need to update all other tools... - 532. By Daniel Nichter
-
Don't try https and http: use https if possible, else http. Lower timeout from 5 to 3 seconds. Start updating/fixing pt-archiver/
version_ check.t. - 531. By Daniel Nichter
-
Make util/test-env require /etc/percona-
toolkit/ percona- toolkit. conf have no-version-check.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/percona-toolkit/2.2