pt-stalk does not get all InnoDB lock data

Bug #1035325 reported by Baron Schwartz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Medium
Brian Fraser

Bug Description

I think gtowey or geodbz or someone might have reported this, too -- and Box has a patch in their Rain Gauge tool to address it. pt-stalk only gets the lock waits from the I_S tables for InnoDB. See the lock_waits() function. It would be best to capture the full contents of the INNODB_LOCK_WAITS as well as the INNODB_TRX and INNODB_LOCKS tables, as-is.

Related branches

Revision history for this message
Gavin Towey (gtowey) wrote :

I agree; the raw output of INNODB_LOCKS is very useful for things like aggregating by table or schema, and the raw output of INNODB_TRX is necessary because SHOW ENGINE INNODB STATUS truncates queries, and SHOW PROCESSLIST doesn't include the innodb transaction id.

tags: added: data-collection pt-stalk
Changed in percona-toolkit:
status: New → Triaged
Changed in percona-toolkit:
milestone: none → 2.1.4
importance: Undecided → Medium
Changed in percona-toolkit:
assignee: nobody → Daniel Nichter (daniel-nichter)
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

What do you all think of the linked branch? I figure: keep current lock-waits file as-is (for backwards compat), and now all your InnoDB transaction data is in <prefix>-transactions. Yes?

Changed in percona-toolkit:
status: Triaged → In Progress
Changed in percona-toolkit:
assignee: Daniel Nichter (daniel-nichter) → Brian Fraser (fraserbn)
Revision history for this message
Brian Fraser (fraserbn) wrote :

Sounds good to me. I'll merge it on Monday unless someone objects.

Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: In Progress → 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-565

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.