pt-table-checksum --recursion-method=cluster crashes if no nodes are found

Bug #1210537 reported by Jay Janssen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
High
Daniel Nichter

Bug Description

[root@ip-10-149-25-113 ~]# pt-table-checksum --recursion-method cluster
Use of uninitialized value in string ne at /usr/bin/pt-table-checksum line 9206.

I have granted *.* to root@'%', and it just gives this error. I'll attach the debug output.

Related branches

Revision history for this message
Jay Janssen (jay-janssen) wrote :
Revision history for this message
Jay Janssen (jay-janssen) wrote :

Note: Had to comment out all calls to the remove_duplicate_cxns function in pt-table-checksum for this to work.

Revision history for this message
Kenny Gryp (gryp) wrote :

same problem:

root@svrentpsql01 bin]# ./pt-table-checksum --recursion-method cluster -u percona -ptempaccess
Use of uninitialized value in string ne at ./pt-table-checksum line 9206.

tags: added: i35005
tags: added: crash percona-35005 pt-table-checksum pxc
removed: i35005
Changed in percona-toolkit:
importance: Undecided → High
assignee: nobody → Daniel Nichter (daniel-nichter)
status: New → Confirmed
Changed in percona-toolkit:
status: Confirmed → In Progress
summary: - pt-table-checksum --recursion-method cluster returns unhelpful error
- message
+ pt-table-checksum --recursion-method cluster crashes
Revision history for this message
Daniel Nichter (daniel-nichter) wrote : Re: pt-table-checksum --recursion-method cluster crashes

Tested, fixed, and improved: warning now says "No slaves found" or "No cluster nodes found" if --recursion-method=cluster. Also, the --recursion-method validator knows that "cluster" is valid and that "none" can't be combined with other options.

tags: added: slave-recursion
Changed in percona-toolkit:
milestone: none → 2.2.5
status: In Progress → Fix Committed
summary: - pt-table-checksum --recursion-method cluster crashes
+ pt-table-checksum --recursion-method cluster crashes if no nodes are
+ found
summary: - pt-table-checksum --recursion-method cluster crashes if no nodes are
+ pt-table-checksum --recursion-method=cluster crashes if no nodes are
found
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-365

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.