2012-02-01 16:14:59 |
Daniel Nichter |
description |
Jay encountered a bug when using pt-query-digest and --group-by db: the profile report crashed,
sub metrics {
my ( $self, %args ) = @_;
foreach my $arg ( qw(attrib where) ) {
die "I need a $arg argument" unless $args{$arg};
}
because where was "" (blank string). This was probably due to queries with no default db (e.g. admin commands). Jay was using pt-query-digest 2.0.2, but the bug probably exists in all older versions too.
Because this bug crashes a report, it causes this infinite loop: https://bugs.launchpad.net/percona-toolkit/+bug/888114 |
Jay encountered a bug when using pt-query-digest and --group-by db: the profile report crashed,
sub metrics {
my ( $self, %args ) = @_;
foreach my $arg ( qw(attrib where) ) {
die "I need a $arg argument" unless $args{$arg};
}
because where was "" (blank string). This was probably due to queries with no default db (e.g. admin commands). Jay was using pt-query-digest 2.0.2, but the bug probably exists in all older versions too.
Changing the die line to "unless defined" fixed the problem in the field.
Because this bug crashes a report, it causes this infinite loop: https://bugs.launchpad.net/percona-toolkit/+bug/888114 |
|