pt-table-checksum 2.2.12 Undefined subroutine &Cxn::Dumper
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/
Command tried:
$ PTDEBUG=1 ./pt-table-checksum --recursion-
$ PTDEBUG=1 pt-table-checksum --tables=test.t1 --recursion-
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-
PTDEBUG && _d(Dumper($row)); <------
Related branches
- Daniel Nichter: Approve
-
Diff: 95 lines (+0/-8)8 files modifiedbin/pt-config-diff (+0/-1)
bin/pt-deadlock-logger (+0/-1)
bin/pt-fk-error-logger (+0/-1)
bin/pt-kill (+0/-1)
bin/pt-online-schema-change (+0/-1)
bin/pt-table-checksum (+0/-1)
bin/pt-upgrade (+0/-1)
lib/Cxn.pm (+0/-1)
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 |
Changed in percona-toolkit: | |
status: | In Progress → Fix Committed |
tags: | added: pt-table-checksum |
Changed in percona-toolkit: | |
status: | Fix Committed → Fix Released |
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.