Compare commits

...

8 Commits

Author SHA1 Message Date
Carlos Salguero
3b52114e93 Fixed release date in changelog 2022-12-02 09:38:56 -03:00
Dario Minnucci
7e5c51d0fb Fix some spelling errors (#462)
Co-authored-by: Sveta Smirnova <svetasmirnova@users.noreply.github.com>
2022-12-01 15:54:24 +03:00
Anastasia Alexandrova
e8977042d4 Updated docs templates (#565) 2022-12-01 13:20:19 +01:00
Carlos Salguero
ed030fa3fb PT-2128 Updated version to 3.5.0 (#562) 2022-12-01 14:32:08 +03:00
Carlos Salguero
882d8787c7 Release 3.5.0 (#563)
* Changelog and version for Release 3.5.0

* PT-2076 add rhel9 dependency

* PT-2128 Updated version to 3.5.0

Co-authored-by: svetasmirnova <sveta.smirnova@percona.com>
Co-authored-by: EvgeniyPatlan <evgeniy.patlan@percona.com>
2022-12-01 14:31:46 +03:00
Kazuya Yokogawa
bc3056f29d PT-2110 - Fixed PTDEBUG output with --ignore-engines option (#555) 2022-11-30 14:51:49 +03:00
Anastasia Alexandrova
c9bf980ef5 PT-2117 Updated the version in docs (#564)
modified:   config/sphinx-build/conf.py
	modified:   docs/percona-toolkit.pod
2022-11-29 15:32:00 +01:00
Anastasia Alexandrova
b737f2cf9e PT-2117 Release notes 3.5.0 (#560)
Added release notes
Updated index
2022-11-28 14:58:06 +01:00
55 changed files with 285 additions and 158 deletions

View File

@@ -1,5 +1,27 @@
Changelog for Percona Toolkit
v3.5.0 release 2022-11-28
* Improvement PT-1052: Include NUMA information in pt-tool output
* Improvement PT-1926: pt-k8s-debug-collector should not collect passwords
* Improvement PT-2033: Avoid running same query concurrently from pt-stalk
* Improvement PT-2105: Let pt-k8-debug-collector to collect individual logs in PXC pods in addition to `kubectl logs`
* Improvement PT-2107: Merge Community PRs 466, 298, 58, 53 into 3.x
* Improvement PT-2080: Add JSON logging to pt-kill (Thanks dm-2)
* Improvement PT-2091: Migrate docs to Render
* Fixed bug PT-1739: disable-qrt-plugin option of pt-table-checksum is broken (Thanks E. Souhrada)
* Fixed bug PT-1799: pt-osc + PTDEBUG=1 fails with Use of uninitialized value in concatenation (.) or string at /usr/bin/pt-online-schema-change line 4270
* Fixed bug PT-1897: pt-stalk on MySQL 8 not collecting "lock" information
* Fixed bug PT-1959: go part of the toolkit still has the version 3.3.0
* Fixed bug PT-2075: Fix tests for pt-stalk, so they can work with 8.0
* Fixed bug PT-2092: Improper version of protobuf in go.sum
* Fixed bug PT-2125: Documentation outdated or missed for tools, written in Go
* Fixed bug PT-2086: Typos (Thanks Iwo Panowicz)
* Fixed bug PR-553: Fix some typos in documentation of pt-query-digest (Thanks Christian Bartolomäus)
* Fixed bug PR-53: Docs table regex (Thanks Daniël van Eeden)
* Fixed bug PR-58: Correcting specified package type in error message (Thanks Daniel Hoherd)
* Fixed bug PR-298: Fix typo (Thanks Moritz Lenz)
v3.4.0 release 2022-07-11
* New Tool PT-1978: Add reporting on unused/redundant indexes for MongoDB by pt-mongodb-summary

View File

@@ -2,7 +2,7 @@ use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'Percona::Toolkit',
VERSION => '3.4.0',
VERSION => '3.5.0',
EXE_FILES => [ <bin/*> ],
MAN1PODS => {
'docs/percona-toolkit.pod' => 'blib/man1/percona-toolkit.1p',

View File

@@ -1364,6 +1364,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-align 3.4.0
pt-align 3.5.0
=cut

View File

@@ -37,15 +37,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -8661,6 +8661,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-archiver 3.4.0
pt-archiver 3.5.0
=cut

View File

@@ -35,15 +35,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -5917,6 +5917,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-config-diff 3.4.0
pt-config-diff 3.5.0
=cut

View File

@@ -34,15 +34,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -5710,6 +5710,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-deadlock-logger 3.4.0
pt-deadlock-logger 3.5.0
=cut

View File

@@ -30,15 +30,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -5684,6 +5684,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-diskstats 3.4.0
pt-diskstats 3.5.0
=cut

View File

@@ -31,15 +31,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -3240,10 +3240,10 @@ sub _d {
# ###########################################################################
# SchemaIterator package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/SchemaIterator.pm
# t/lib/SchemaIterator.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package SchemaIterator;
@@ -3648,7 +3648,7 @@ sub engine_is_allowed {
my $filter = $self->{filters};
if ( $filter->{'ignore-engines'}->{$engine} ) {
PTDEBUG && _d('Engine', $engine, 'is in --ignore-databases list');
PTDEBUG && _d('Engine', $engine, 'is in --ignore-engines list');
return 0;
}
@@ -5771,6 +5771,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-duplicate-key-checker 3.4.0
pt-duplicate-key-checker 3.5.0
=cut

View File

@@ -1653,6 +1653,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-fifo-split 3.4.0
pt-fifo-split 3.5.0
=cut

View File

@@ -27,15 +27,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -5132,6 +5132,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-find 3.4.0
pt-find 3.5.0
=cut

View File

@@ -2262,6 +2262,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-fingerprint 3.4.0
pt-fingerprint 3.5.0
=cut

View File

@@ -29,15 +29,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -4693,6 +4693,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-fk-error-logger 3.4.0
pt-fk-error-logger 3.5.0
=cut

View File

@@ -36,15 +36,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -7394,6 +7394,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-heartbeat 3.4.0
pt-heartbeat 3.5.0
=cut

View File

@@ -37,15 +37,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -4022,10 +4022,10 @@ sub _d {
# ###########################################################################
# SchemaIterator package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/SchemaIterator.pm
# t/lib/SchemaIterator.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package SchemaIterator;
@@ -4430,7 +4430,7 @@ sub engine_is_allowed {
my $filter = $self->{filters};
if ( $filter->{'ignore-engines'}->{$engine} ) {
PTDEBUG && _d('Engine', $engine, 'is in --ignore-databases list');
PTDEBUG && _d('Engine', $engine, 'is in --ignore-engines list');
return 0;
}
@@ -7705,6 +7705,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-index-usage 3.4.0
pt-index-usage 3.5.0
=cut

View File

@@ -1133,7 +1133,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-ioprofile 3.4.0
pt-ioprofile 3.5.0
=cut

View File

@@ -39,15 +39,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -7874,7 +7874,7 @@ type: DSN
Store each query killed in this DSN.
The argument specifies a table to store all killed queries. The DSN
passed in must have the databse (D) and table (t) options. The
passed in must have the database (D) and table (t) options. The
table must have at least the following columns. You can add more columns for
your own special purposes, but they won't be used by pt-kill. The
following CREATE TABLE definition is also used for L<"--create-log-table">.
@@ -8666,6 +8666,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-kill 3.4.0
pt-kill 3.5.0
=cut

View File

@@ -809,7 +809,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-mext 3.4.0
pt-mext 3.5.0
=cut

View File

@@ -3296,7 +3296,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-mysql-summary 3.4.0
pt-mysql-summary 3.5.0
=cut

View File

@@ -48,15 +48,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -12073,7 +12073,7 @@ C<wsrep_OSU_method> is not C<TOI>. There is no way to disable these checks.
=head1 MySQL 5.7 + Generated columns
The tools ignores MySQL 5.7+ C<GENERATED> columns since the value for those columns
is generated according to the expresion used to compute column values.
is generated according to the expression used to compute column values.
=head1 OUTPUT
@@ -13469,6 +13469,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-online-schema-change 3.4.0
pt-online-schema-change 3.5.0
=cut

View File

@@ -901,7 +901,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-pmp 3.4.0
pt-pmp 3.5.0
=cut

8
bin/pt-query-digest Executable file → Normal file
View File

@@ -56,15 +56,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -16977,6 +16977,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-query-digest 3.4.0
pt-query-digest 3.5.0
=cut

View File

@@ -2618,6 +2618,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-show-grants 3.4.0
pt-show-grants 3.5.0
=cut

View File

@@ -1250,7 +1250,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-sift 3.4.0
pt-sift 3.5.0
=cut

View File

@@ -32,15 +32,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -4993,6 +4993,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-slave-delay 3.4.0
pt-slave-delay 3.5.0
=cut

View File

@@ -4528,6 +4528,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-slave-find 3.4.0
pt-slave-find 3.5.0
=cut

View File

@@ -33,15 +33,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -6164,6 +6164,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-slave-restart 3.4.0
pt-slave-restart 3.5.0
=cut

View File

@@ -2552,7 +2552,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-stalk 3.4.0
pt-stalk 3.5.0
=cut

View File

@@ -2223,7 +2223,7 @@ report_system_summary () { local PTFUNCNAME=report_system_summary;
name_val "${disk}" "${scheduler:-"UNREADABLE"}"
done
section "Disk Partioning"
section "Disk Partitioning"
parse_fdisk "$data_dir/partitioning"
section "Kernel Inode State"
@@ -2516,7 +2516,7 @@ C<df>. This section is skipped if you disable L<"--summarize-mounts">.
The disk scheduler information is extracted from the F</sys> filesystem in
Linux.
# Disk Partioning ############################################
# Disk Partitioning ######################################
Device Type Start End Size
============ ==== ========== ========== ==================
/dev/sda Disk 17179869184
@@ -2769,7 +2769,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-summary 3.4.0
pt-summary 3.5.0
=cut

21
bin/pt-table-checksum Executable file → Normal file
View File

@@ -11,7 +11,6 @@ use warnings FATAL => 'all';
# in this file. Setting %INC to this file for each module makes Perl aware
# of this so it will not try to load the module from @INC. See the tool's
# documentation for a full list of dependencies.
BEGIN {
$INC{$_} = __FILE__ for map { (my $pkg = "$_.pm") =~ s!::!/!g; $pkg } (qw(
Percona::Toolkit
@@ -51,15 +50,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -7567,10 +7566,10 @@ sub _d {
# ###########################################################################
# SchemaIterator package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/SchemaIterator.pm
# t/lib/SchemaIterator.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package SchemaIterator;
@@ -7975,7 +7974,7 @@ sub engine_is_allowed {
my $filter = $self->{filters};
if ( $filter->{'ignore-engines'}->{$engine} ) {
PTDEBUG && _d('Engine', $engine, 'is in --ignore-databases list');
PTDEBUG && _d('Engine', $engine, 'is in --ignore-engines list');
return 0;
}
@@ -11493,7 +11492,7 @@ sub main {
TABLE:
while ( $oktorun && $have_time->() && (my $tbl = $schema_iter->next()) ) {
eval {
# Results, stats, and info related to checksuming this table can
# Results, stats, and info related to checksumming this table can
# be saved here. print_checksum_results() uses this info.
$tbl->{checksum_results} = {};
@@ -13106,7 +13105,7 @@ type: string
Channel name used when connected to a server using replication channels.
Suppose you have two masters, master_a at port 12345, master_b at port 1236 and
a slave connected to both masters using channels chan_master_a and chan_master_b.
If you want to run pt-table-sync to syncronize the slave against master_a, pt-table-sync
If you want to run pt-table-sync to synchronize the slave against master_a, pt-table-sync
won't be able to determine what's the correct master since SHOW SLAVE STATUS
will return 2 rows. In this case, you can use --channel=chan_master_a to specify
the channel name to use in the SHOW SLAVE STATUS command.
@@ -13124,7 +13123,7 @@ See "Replicas using row-based replication" under L<"LIMITATIONS">.
This option modifies the behavior of L<"--create-replicate-table"> such that the
replicate table's upper and lower boundary columns are created with the BLOB
data type.
This is useful in cases where you have trouble checksuming tables with keys that
This is useful in cases where you have trouble checksumming tables with keys that
include a binary data type or that have non-standard character sets.
See L<"--replicate">.
@@ -14197,6 +14196,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-table-checksum 3.4.0
pt-table-checksum 3.5.0
=cut

View File

@@ -47,15 +47,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -7666,10 +7666,10 @@ sub _d {
# ###########################################################################
# SchemaIterator package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/SchemaIterator.pm
# t/lib/SchemaIterator.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package SchemaIterator;
@@ -8074,7 +8074,7 @@ sub engine_is_allowed {
my $filter = $self->{filters};
if ( $filter->{'ignore-engines'}->{$engine} ) {
PTDEBUG && _d('Engine', $engine, 'is in --ignore-databases list');
PTDEBUG && _d('Engine', $engine, 'is in --ignore-engines list');
return 0;
}
@@ -12199,7 +12199,7 @@ type: string
Channel name used when connected to a server using replication channels.
Suppose you have two masters, master_a at port 12345, master_b at port 1236 and
a slave connected to both masters using channels chan_master_a and chan_master_b.
If you want to run pt-table-sync to syncronize the slave against master_a, pt-table-sync
If you want to run pt-table-sync to synchronize the slave against master_a, pt-table-sync
won't be able to determine what's the correct master since SHOW SLAVE STATUS
will return 2 rows. In this case, you can use --channel=chan_master_a to specify
the channel name to use in the SHOW SLAVE STATUS command.
@@ -13101,6 +13101,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-table-sync 3.4.0
pt-table-sync 3.5.0
=cut

View File

@@ -8519,6 +8519,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-table-usage 3.4.0
pt-table-usage 3.5.0
=cut

View File

@@ -53,15 +53,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -10697,7 +10697,7 @@ on the new version of MySQL.
pt-upgrade executes queries from slow, general, binary, tcpdump, and
"raw" logs on two servers, compares many aspects of each query's exeuction
and results, and reports any signficant differences. The two servers are
and results, and reports any significant differences. The two servers are
typically development servers, one running the current production version
of MySQL and the other running the new version of MySQL.
@@ -10785,7 +10785,7 @@ network intensive. It executes queries as fast as possible.
=head1 QUERY DIFFERENCES
Signficant query differences are determined by comparing these aspects
Significant query differences are determined by comparing these aspects
of each query from both hosts:
=over
@@ -11137,7 +11137,7 @@ should be printed, in percentage, seconds, or number of iterations.
default: yes
Execute only C<SELECT> and C<SET> statements. If C<--no-read-only> is
specified, I<all> queries are exeucted: C<DROP>, C<DELETE>, C<UPDATE>, etc.
specified, I<all> queries are executed: C<DROP>, C<DELETE>, C<UPDATE>, etc.
Even when running in default read-only mode, you should use a MySQL user
with only C<SELECT> privileges to insure against bugs in the tool.
@@ -11454,6 +11454,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-upgrade 3.4.0
pt-upgrade 3.5.0
=cut

View File

@@ -36,15 +36,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -6262,6 +6262,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-variable-advisor 3.4.0
pt-variable-advisor 3.5.0
=cut

View File

@@ -3308,6 +3308,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-visual-explain 3.4.0
pt-visual-explain 3.5.0
=cut

View File

@@ -15,6 +15,9 @@ BuildArch: x86_64
BuildRequires: perl(ExtUtils::MakeMaker) make
Requires: perl(DBI) >= 1.13, perl(DBD::mysql) >= 1.0, perl(Time::HiRes), perl(IO::Socket::SSL), perl(Digest::MD5), perl(Term::ReadKey)
%if 0%{?rhel} > 9
Requires: perl(English)
%endif
AutoReq: no
%description

Binary file not shown.

View File

@@ -3,7 +3,7 @@
<article class="md-content__inner md-typeset" role="main">
<h4>Contact Us </h4>
<p>For free technical help, visit the Percona <a class="reference external" href="https://forums.percona.com/c/mongodb/percona-server-for-mongodb/17?utm_campaign=Doc%20pages" target="_blank">Community Forum</a>.<br>
<p>To report bugs or submit feature requests, open a <a class="reference external" href="https://jira.percona.com/projects/PSMDB/issues/" target="_blank">JIRA</a> ticket.<br>
<p>To report bugs or submit feature requests, open a <a class="reference external" href="https://jira.percona.com/projects/PT/issues/" target="_blank">JIRA</a> ticket.<br>
<p>For paid <a class="reference external" href="https://www.percona.com/services/support"> support </a> and <a class="reference external" href="https://www.percona.com/services/managed-services"> managed </a> or <a class="reference external" href="https://www.percona.com/services/consulting">consulting services </a>, contact <a class="reference external" href="https://www.percona.com/about-percona/contact" target="_blank">Percona Sales</a>.</p>
<hr>
{# Add the last updated timestamp from git commits using gitstamp extension #}

View File

@@ -10,8 +10,8 @@ html_sidebars['**']=['globaltoc.html', 'searchbox.html', 'localtoc.html', 'logo-
html_theme = 'sphinx_material'
html_theme_options = {
'base_url': 'http://bashtage.github.io/sphinx-material/',
'repo_url': 'https://github.com/percona/percona-server',
'repo_name': 'percona/percona-server',
'repo_url': 'https://github.com/percona/percona-toolkit',
'repo_name': 'percona/percona-toolkit',
'color_accent': 'grey',
'color_primary': 'orange',
'globaltoc_collapse': True,

View File

@@ -48,9 +48,9 @@ copyright = u'2022, Percona LLC and/or its affiliates'
# built documents.
#
# The short X.Y version.
version = '3.4'
version = '3.5'
# The full version, including alpha/beta/rc tags.
release = '3.4.0'
release = '3.5.0'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@@ -86,6 +86,14 @@ Kill MySQL queries that match certain criteria.
Look at many samples of MySQL C<SHOW GLOBAL STATUS> side-by-side.
=item pt-mongodb-index-check
Performs checks on MongoDB indexes
=item pt-mongodb-query-digest
Reports query usage statistics by aggregating queries from MongoDB query profiler
=item pt-mysql-summary
Summarize MySQL information nicely.
@@ -567,6 +575,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
Percona Toolkit v3.4.0 released 2022-04-05
Percona Toolkit v3.5.0 released 2022-11-28
=cut

View File

@@ -19,6 +19,7 @@ Check for indexes that are the prefix of other indexes. For example if we have t
db.getSiblingDB("testdb").test_col.createIndex({"f1": 1, "f2": -1, "f3": 1, "f4": 1}, {"name": "idx_01"});
db.getSiblingDB("testdb").test_col.createIndex({"f1": 1, "f2": -1, "f3": 1}, {"name": "idx_02"});
The index ``idx_02`` is the prefix of ``idx_01`` because it has the same
keys in the same order so, ``idx_02`` can be dropped.
@@ -66,3 +67,4 @@ Available flags
+----------------------------+----------------------------------------+
| json | Show output as JSON |
+----------------------------+----------------------------------------+

View File

@@ -1,6 +1,46 @@
Percona Toolkit
***************
v3.5.0 released 2022-11-28
==============================
New Features
------------
* :jirabug:`PT-191`: add SSL options to DSN field for pt-online-schema-change
Improvements
------------------------------------------------------------
* :jirabug:`PT-1718`: Have pt-stalk collect performance_schema.threads along with information_schema.processlist
* :jirabug:`PT-2033`: Avoid running same query concurrently from pt-stalk
* :jirabug:`PT-2013`: Change Percona Toolkit tool names to eliminate offensive terminology
Bugs Fixed
------------
* :jirabug:`PT-1926`: pt-k8s-debug-collector should not collect passwords
* :jirabug:`PT-1628`: pt-mysql-summary checks installed mysqld binary which may not be the version in memory
* :jirabug:`PT-1739`: disable-qrt-plugin option of pt-table-checksum is broken (Thanks to Ernie Souhrada for reporting this issue)
* :jirabug:`PT-175`: Add support for replication channels on pt-slave-restart
* :jirabug:`PT-1052`: Include NUMA information in in pt-summary and pt-stalk output
* :jirabug:`PT-1799`: pt-osc + PTDEBUG=1 fails with Use of uninitialized value in concatenation (.) or string at /usr/bin/pt-online-schema-change line 4270.
* :jirabug:`PT-1897`: pt-stalk on MySQL 8 not collecting "lock" information
* :jirabug:`PT-2092`: Improper version of protobuf in go.sum
* :jirabug:`PT-2079`: Incorrect version is returned
* :jirabug:`PT-2075`: Fix tests for pt-stalk, so they can work with 8.0
* :jirabug:`PT-1959`: go part of the toolkit still has the version 3.3.0
Packaging Notes
------------------------
``percona-toolkit`` is now available on Ubuntu 22.04 and Red Hat Enterprise Linux 9
v3.4.0 released 2022-07-11
==========================

41
docs/rn.3-5-0.txt Normal file
View File

@@ -0,0 +1,41 @@
.. _PT-3.5.0:
================================================================================
*Percona Toolkit* 3.5.0
================================================================================
:Date: January 1, 0001
:Installation: `Installing Percona Toolkit <https://www.percona.com/doc/percona-toolkit/LATEST/installation.html>`_
New Features
================================================================================
* :jirabug:`PT-191`: add SSL options to DSN
Improvements
================================================================================
* :jirabug:`PT-1718`: Have pt-stalk collect performance_schema.threads along with information_schema.processlist
* :jirabug:`PT-2033`: Avoid running same query concurrently from pt-stalk
* :jirabug:`PT-2013`: Change PT tool names changes to eliminate offensive terminology
Bugs Fixed
================================================================================
* :jirabug:`PT-1926`: pt-k8s-debug-collector should not collect passwords
* :jirabug:`PT-1628`: pt-mysql-summary checks installed mysqld binary which may not be the version in memory
* :jirabug:`PT-1739`: disable-qrt-plugin option of pt-table-checksum is broken (Thanks to Ernie Souhrada for reporting this issue)
* :jirabug:`PT-175`: Add support for replication channels on pt-slave-restart
* :jirabug:`PT-1052`: LP #1083488: Include NUMA information in pt-tool output
* :jirabug:`PT-1799`: pt-osc + PTDEBUG=1 fails with Use of uninitialized value in concatenation (.) or string at /usr/bin/pt-online-schema-change line 4270.
* :jirabug:`PT-1897`: pt-stalk on MySQL 8 not collecting "lock" information
* :jirabug:`PT-2092`: Improper version of protobuf in go.sum
* :jirabug:`PT-2079`: Incorrect version is returned
* :jirabug:`PT-2075`: Fix tests for pt-stalk, so they can work with 8.0
* :jirabug:`PT-1959`: go part of the toolkit still has the version 3.3.0

View File

@@ -18,7 +18,7 @@
# ###########################################################################
package Percona::Toolkit;
our $VERSION = '3.4.0';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';

View File

@@ -462,10 +462,10 @@ sub table_is_allowed {
|slave_master_info
|slave_relay_log_info
|slave_worker_info
|slow_log
|slow_log
)$/x;
if ( $filter->{'ignore-tables'}->{'*'}->{$tbl}
if ( $filter->{'ignore-tables'}->{'*'}->{$tbl}
|| $filter->{'ignore-tables'}->{$db}->{$tbl}) {
PTDEBUG && _d('Table', $tbl, 'is in --ignore-tables list');
return 0;
@@ -478,7 +478,7 @@ sub table_is_allowed {
}
if ( $filter->{'tables'}
&& (!$filter->{'tables'}->{'*'}->{$tbl} && !$filter->{'tables'}->{$db}->{$tbl}) ) {
&& (!$filter->{'tables'}->{'*'}->{$tbl} && !$filter->{'tables'}->{$db}->{$tbl}) ) {
PTDEBUG && _d('Table', $tbl, 'is not in --tables list, ignoring');
return 0;
}
@@ -527,7 +527,7 @@ sub engine_is_allowed {
my $filter = $self->{filters};
if ( $filter->{'ignore-engines'}->{$engine} ) {
PTDEBUG && _d('Engine', $engine, 'is in --ignore-databases list');
PTDEBUG && _d('Engine', $engine, 'is in --ignore-engines list');
return 0;
}

View File

@@ -1,8 +1,9 @@
package proto
// ProfilerStatus is a struct to hold the results of db.getProfilingLevel()
// var ps proto.ProfilerStatus
// err := db.Run(bson.M{"profile": -1}, &ps)
//
// var ps proto.ProfilerStatus
// err := db.Run(bson.M{"profile": -1}, &ps)
type ProfilerStatus struct {
Was int64 `bson:"was"`
SlowMs int64 `bson:"slowms"`

View File

@@ -184,21 +184,22 @@ func GetHostnames(ctx context.Context, client *mongo.Client) ([]string, error) {
}
/*
"members" : [
{
"_id" : 0,
"name" : "localhost:17001",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 4700,
"optime" : Timestamp(1486554836, 1),
"optimeDate" : ISODate("2017-02-08T11:53:56Z"),
"electionTime" : Timestamp(1486651810, 1),
"electionDate" : ISODate("2017-02-09T14:50:10Z"),
"configVersion" : 1,
"self" : true
},
"members" : [
{
"_id" : 0,
"name" : "localhost:17001",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 4700,
"optime" : Timestamp(1486554836, 1),
"optimeDate" : ISODate("2017-02-08T11:53:56Z"),
"electionTime" : Timestamp(1486651810, 1),
"electionDate" : ISODate("2017-02-09T14:50:10Z"),
"configVersion" : 1,
"self" : true
},
*/
func buildHostsListFromReplStatus(replStatus proto.ReplicaSetStatus) []string {
hostnames := []string{}
@@ -211,17 +212,20 @@ func buildHostsListFromReplStatus(replStatus proto.ReplicaSetStatus) []string {
return hostnames
}
/* Example
/*
Example
mongos> db.getSiblingDB('admin').runCommand('getShardMap')
{
"map" : {
"config" : "localhost:19001,localhost:19002,localhost:19003",
"localhost:17001" : "r1/localhost:17001,localhost:17002,localhost:17003",
"r1" : "r1/localhost:17001,localhost:17002,localhost:17003",
"r1/localhost:17001,localhost:17002,localhost:17003" : "r1/localhost:17001,localhost:17002,localhost:17003",
},
"ok" : 1
}.
{
"map" : {
"config" : "localhost:19001,localhost:19002,localhost:19003",
"localhost:17001" : "r1/localhost:17001,localhost:17002,localhost:17003",
"r1" : "r1/localhost:17001,localhost:17002,localhost:17003",
"r1/localhost:17001,localhost:17002,localhost:17003" : "r1/localhost:17001,localhost:17002,localhost:17003",
},
"ok" : 1
}.
*/
func buildHostsListFromShardMap(shardsMap proto.ShardsMap) []string {
hostnames := []string{}

View File

@@ -316,7 +316,6 @@ type crSecrets struct {
func (d *Dumper) getIndividualFiles(resource, namespace string, podName, path, location string, tw *tar.Writer) error {
args := []string{"-n", namespace, "cp", podName + ":" + path, "/dev/stdout"}
output, err := d.runCmd(args...)
if err != nil {
d.logError(err.Error(), args...)
log.Printf("Error: get path %s for resource %s in namespace %s: %v", path, resource, d.namespace, err)

View File

@@ -2,11 +2,12 @@ package main
import (
"bytes"
"golang.org/x/exp/slices"
"os/exec"
"path"
"strings"
"testing"
"golang.org/x/exp/slices"
)
/*

View File

@@ -48,7 +48,7 @@ const (
var (
Build string = "2020-04-23" //nolint
GoVersion string = "1.14.1" //nolint
Version string = "3.4.0" //nolint
Version string = "3.5.0" //nolint
Commit string //nolint
)

View File

@@ -41,7 +41,7 @@ const (
var (
Build string = "2020-04-23" //nolint
GoVersion string = "1.14.1" //nolint
Version string = "3.4.0" //nolint
Version string = "3.5.0" //nolint
Commit string //nolint
)

View File

@@ -57,7 +57,7 @@ const (
var (
Build string = "2020-04-23"
GoVersion string = "1.14.1"
Version string = "3.4.0"
Version string = "3.5.0"
Commit string
defaultConnectionTimeout = 3 * time.Second

View File

@@ -10,8 +10,8 @@ import (
"github.com/alecthomas/kingpin"
_ "github.com/lib/pq"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
"github.com/percona/percona-toolkit/src/go/lib/pginfo"
"github.com/percona/percona-toolkit/src/go/pt-pg-summary/templates"
@@ -21,7 +21,7 @@ var (
Build string = "2020-04-23" //nolint
Commit string //nolint
GoVersion string = "1.14.1" //nolint
Version string = "3.4.0" //nolint
Version string = "3.5.0" //nolint
)
type connOpts struct {

View File

@@ -15,8 +15,8 @@ import (
"github.com/alecthomas/kingpin"
"github.com/go-ini/ini"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
"golang.org/x/crypto/ssh/terminal"
)
@@ -86,7 +86,7 @@ var (
Build string = "2020-04-23" //nolint
GoVersion string = "1.14.1" //nolint
Version string = "3.4.0" //nolint
Version string = "3.5.0" //nolint
Commit string //nolint
)

View File

@@ -482,6 +482,13 @@ VERSION=$1
REL_NOTES=$2
OS_ARCH=${3:-linux-amd64}
ONLY_UPDATE_VERSION=${ONLY_UPDATE_VERSION:-0}
if [ $ONLY_UPDATE_VERSION -eq 1 ]; then
update_version
exit
fi
if [ $OS_ARCH != "linux-amd64" ] && [ $OS_ARCH != "linux-386" ] && [ $OS_ARCH != "darwin-amd64" ]; then
die "Valid OS-ARCH combinations are: linux-amd64, linux-386, darwin-amd64"
fi