pt-table-checksum 2.2.12 Undefined subroutine &Cxn::Dumper

Bug #1394934 reported by Peiran Song
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
High
Frank Cizmich

Bug Description

The latest version of 2.2.12 keeps failing with this error in debug output:

Undefined subroutine &Cxn::Dumper called at /usr/bin/pt-table-checksum line 3640.

Command tried:
$ PTDEBUG=1 ./pt-table-checksum --recursion-method=none --tables=test.activity >ptc2.2.12.st.out 2>ptc2.2.12.st.err
$ PTDEBUG=1 pt-table-checksum --tables=test.t1 --recursion-method=dsn=h=127.0.0.1,P=13000,D=percona,t=dsns h=127.0.0.1,P=13000,u=msandbox,p=msandbox

Source code:

sub is_cluster_node {
   my ($self, $cxn) = @_;

   my $sql = "SHOW VARIABLES LIKE 'wsrep\_on'";
   PTDEBUG && _d($cxn->name, $sql);
   my $row = $cxn->dbh->selectrow_arrayref($sql);
   PTDEBUG && _d(Dumper($row)); <----------------------------

Related branches

Changed in percona-toolkit:
assignee: nobody → Frank Cizmich (frank-cizmich)
status: New → In Progress
importance: Undecided → High
Changed in percona-toolkit:
milestone: none → 2.2.13
Revision history for this message
Frank Cizmich (frank-cizmich) wrote :

This bug affects some tools when running in debug mode ( PTDEBUG = 1 )
To workaround this you can delete that line in the code or apply the patch attached here.

Changed in percona-toolkit:
status: In Progress → Fix Committed
Revision history for this message
Peiran Song (peiran-song) wrote :

Frank,

Thanks for the quick fix!

tags: added: pt-table-checksum
Changed in percona-toolkit:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-382

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.