Bug #29126 | Add locks held, remove locked records in SHOW INNODB STATUS | ||
---|---|---|---|
Submitted: | 15 Jun 2007 1:49 | Modified: | 4 Apr 2013 6:51 |
Reporter: | Baron Schwartz (Basic Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S4 (Feature request) |
Version: | All | OS: | Any |
Assigned to: | Vasil Dimov | CPU Architecture: | Any |
Tags: | Contribution, innodb, locks, qc |
[15 Jun 2007 1:49]
Baron Schwartz
[15 Jun 2007 7:12]
Valeriy Kravchuk
Thank you for a reasonable feature request.
[15 Nov 2007 21:44]
Sergei Golubchik
patch: http://lists.mysql.com/internals/35174
[16 Nov 2007 3:57]
Mark Callaghan
More related feature requests: * reorder the output so that the large and variable length sections (Transactions, ...) are printed last * make the max size for SHOW INNODB STATUS output a configurable parameter if it must be fixed size
[8 Jun 2009 19:40]
liz drachnik
Hello Baron - Since you seem interested in contributing to MySQL, may I suggest that you sign the Sun|MySQL contributor agreement, i.e. the SCA. The instructions are given here: http://forge.mysql.com/wiki/Sun_Contributor_Agreement. I will review the SCA submission and can turn around the approval very quickly (usually same day) This will facilitate the handling of your contributions -- this one, and others in the future. Thanks! Liz Drachnik - MySQL Program Manager
[1 Sep 2010 5:21]
James Day
The locked record information is how we work out why there is a conflict between the two transactions, so keeping it is useful sometimes. But it would be much more convenient to have only the relevant locks shown - the specific conflict and perhaps preceding and following locks taken.
[3 Apr 2013 13:21]
Vasil Dimov
Hello, The first request - to be able to see which transaction is blocking a waiting transaction and what locks both hold has been implemented in 2007 in InnoDB INFORMATION_SCHEMA tables innodb_trx, innodb_locks, innodb_lock_waits. See http://dev.mysql.com/doc/innodb-plugin/1.0/en/innodb-information-schema-examples.html for documentation and examples. The second request - to skip "Record lock" and below in SHOW ENGINE INNODB STATUS because the output may be truncated, I think should not be fulfilled because changing SHOW ENGINE INNODB STATUS output will likely break existing apps that parse it. Furthermore, I do not think that InnoDB truncates that output to a fixed length. If, for some reason it gets truncated outside of InnoDB, then InnoDB can be instructed to print that to stderr too by enabling the InnoDB monitor (CREATE TABLE innodb_monitor (a INT) ENGINE=INNODB). The output to stderr will never be truncated. Thus closing this bug entry.
[4 Apr 2013 13:31]
Marko Mäkelä
The function innodb_show_status() in ha_innodb.cc does truncate the output.