Bug #59678 | INFORMATION_SCHEMA.INNODB_TRX Does not contain all InnoDB transactions | ||
---|---|---|---|
Submitted: | 23 Jan 2011 9:14 | Modified: | 6 Apr 2011 13:15 |
Reporter: | Geert Vanderkelen | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.5.8, 5.6.2m5 | OS: | Any |
Assigned to: | Vasil Dimov | CPU Architecture: | Any |
Tags: | information_schema, innodb, innodb_trx |
[23 Jan 2011 9:14]
Geert Vanderkelen
[23 Jan 2011 9:26]
Valeriy Kravchuk
With 5.5.9 on Mac OS X I do not see DROP TABLE in the SHOW ENGINE INNODB STATUS results: ... ------------ TRANSACTIONS ------------ Trx id counter F02 Purge done for trx's n:o < D08 undo n:o < 0 History list length 3 Total number of lock structs in row lock hash table 0 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION 0, not started, OS thread id 2961059840 MySQL thread id 3, query id 54 localhost root show engine innodb status ---TRANSACTION F01, ACTIVE 197 sec, OS thread id 2960650240 1 lock struct(s), heap size 320, 0 row lock(s), undo log entries 1 MySQL thread id 1, query id 17 localhost root -------- FILE I/O -------- ...
[14 Mar 2011 22:16]
Roel Van de Paar
Verified on 5.6.2MR. Many transactions in 'Waiting for table metadata lock' (which do show in SHOW ENGINE INNODB STATUS) are missing from INFORMATION_SCHEMA.INNODB_TRX. See attached output.
[14 Mar 2011 22:19]
Roel Van de Paar
Transaction output difference between SHOW ENGINE INNODB STATUS and INFORMATION_SCHEMA.INNODB_TRX
Attachment: difference.txt (text/plain), 44.10 KiB.
[6 Apr 2011 13:15]
Vasil Dimov
Transactions in "Waiting for table metadata lock" state are not active in InnoDB.