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

Reported by Jay Janssen on 2013-08-09
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Toolkit
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.

Jay Janssen (jay-janssen) wrote :
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.

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

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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers