Comment 0 for bug 924950

Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

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