[MDEV-18391] Print ENGINE INNODB STATUS in machine parsable format Created: 2019-01-28 Updated: 2021-11-16 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Claudio Nanni | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 5 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
I think it would greatly help to have a SHOW ENGINE INNODB STATUS; in a machine parsable format. |
| Comments |
| Comment by Marko Mäkelä [ 2019-01-28 ] |
|
I agree that the SHOW ENGINE INNODB STATUS is difficult to handle. Which are the most interesting pieces of output? Some (such as "history list length") are not currently exported via any other interface. Could someone compose a full list, preferrably with suggestions of how to export, say, SHOW VARIABLES or via performance_schema. My preference would be SHOW VARIABLES except when some history is needed. I’d prefer to phase out SHOW ENGINE INNODB STATUS. However, if some parts of the output are not feasible to export in more structural ways, I guess that we could keep it. In that case, we would need a formal grammar for this, both as a specification for implementation, and for testing that the revised output actually conforms to the formal grammar. |
| Comment by Geoff Montee (Inactive) [ 2019-02-22 ] |
|
The status variables that XtraDB exported are listed in If we create a replacement for SHOW ENGINE INNODB STATUS, then it may be a good idea for that replacement to be designed to do some of the things that SHOW ENGINE INNODB STATUS can't do, like the things described in |
| Comment by Rick James [ 2021-11-15 ] |
|
When helping novices, the first thing I look for is the SQL statements that conflicted in a deadlock. Maybe put that pair of statements could be inserted (replaced) in a P_S entry or a "deadlock" table, thereby making a simple SELECT sufficient for my need. |
| Comment by Marko Mäkelä [ 2021-11-16 ] |
|
rjasdfiii,
If innodb_print_all_deadlocks=ON, information about deadlocks will also be written to the server error log. |