sort pt-stalk transactions()

Bug #1537416 reported by MikeG
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Low
Frank Cizmich

Bug Description

--- /usr/bin/pt-stalk.dist 2015-11-06 14:56:25.000000000 -0500
+++ /usr/bin/pt-stalk 2016-01-23 19:52:44.206878087 -0500
@@ -1052,9 +1052,9 @@
 }

 transactions() {
- $CMD_MYSQL $EXT_ARGV -e "SELECT SQL_NO_CACHE * FROM INFORMATION_SCHEMA.INNODB_TRX\G"
- $CMD_MYSQL $EXT_ARGV -e "SELECT SQL_NO_CACHE * FROM INFORMATION_SCHEMA.INNODB_LOCKS\G"
- $CMD_MYSQL $EXT_ARGV -e "SELECT SQL_NO_CACHE * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS\G"
+ $CMD_MYSQL $EXT_ARGV -e "SELECT SQL_NO_CACHE * FROM INFORMATION_SCHEMA.INNODB_TRX ORDER BY trx_id\G"
+ $CMD_MYSQL $EXT_ARGV -e "SELECT SQL_NO_CACHE * FROM INFORMATION_SCHEMA.INNODB_LOCKS ORDER BY lock_id\G"
+ $CMD_MYSQL $EXT_ARGV -e "SELECT SQL_NO_CACHE * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS ORDER BY blocking_trx_id, requesting_trx_id\G"
 }

 tokudb_status() {

Tags: pt-stalk
Changed in percona-toolkit:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Frank Cizmich (frank-cizmich)
milestone: none → 2.2.17
Revision history for this message
MikeG (mikegriffin) wrote :

Sorry for the spam. Probably this is a little lighter on the INNODB_LOCKS table with the same result: (instead of the wider lock_id column)

SELECT SQL_NO_CACHE * FROM INFORMATION_SCHEMA.INNODB_LOCKS ORDER BY lock_trx_id\G

Revision history for this message
Frank Cizmich (frank-cizmich) wrote :

that's not spam :-)

Thank's Mike

( this is spam: https://www.youtube.com/watch?v=anwy2MPT5RE )

Changed in percona-toolkit:
milestone: 2.2.17 → 2.2.18
Changed in percona-toolkit:
status: Confirmed → Fix Committed
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-828

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.