[MDEV-17237] thread IDs are printed in different formats in different sections of SHOW ENGINE INNODB STATUS output Created: 2018-09-18 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.0.36, 10.1.36, 10.2.17 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Vladislav Lesin |
| Resolution: | Unresolved | Votes: | 3 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
SHOW ENGINE INNODB STATUS uses different formats to print thread IDs in different sections of the output. For example, the thread IDs are in decimal in the SEMAPHORES section:
We can see that this semaphore is held by a thread with ID 139857189899008. To find that thread in the TRANSACTIONS section, we have to convert it to hex. This value in hex is 7F330A1F8B00. This conversion allows us to find the relevant transaction:
The main thread ID is also in decimal:
It might be worthwhile to change the output to be more consistent, so that users don't have to do decimal to hex conversions, and vice-versa. If not, then we should at least document this inconsistency. https://mariadb.com/kb/en/library/show-engine-innodb-status/ |
| Comments |
| Comment by Geoff Montee (Inactive) [ 2020-08-10 ] | ||||||||||||
|
hholzgra pointed out that the format used for these thread IDs should also be consistent with thread IDs printed outside of SHOW ENGINE INNODB STATUS as well. For example, in Galera's "BF lock wait long" messages, it currently seems to print the "OS thread handle" value in decimal:
|