pt-fk-error-logger crashes if there's no foreign key error

Bug #1075773 reported by Daniel Nichter
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
Daniel Nichter

Bug Description

If there's never been a fk error, then get_fk_error() tries to match /LATEST FOREIGN KEY ERROR/, finds and returns nothing, but then the main loop continues anyway as long as there's an insert sth. It should actually check the return values of get_fk_error(). Easy to reproduce: just spin up a new sandbox and run the tool and you'll get an error about $ts being undefined.

Related branches

Changed in percona-toolkit:
status: Triaged → Fix Committed
Brian Fraser (fraserbn)
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-339

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.