SHOW INNODB STATUS should print the thread ID for all background threads

Bug #514147 reported by Baron Schwartz
This bug report is a duplicate of:  Bug #592365: Make InnoDB thread IDs available. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Triaged
Wishlist
Unassigned
Percona patches
Won't Fix
Wishlist
Unassigned

Bug Description

It would be good to print the thread ID for all the threads, like these:

--------
FILE I/O
--------
I/O thread 0 state: waiting for i/o request (insert buffer thread)
I/O thread 1 state: waiting for i/o request (log thread)
I/O thread 2 state: waiting for i/o request (read thread)
I/O thread 3 state: waiting for i/o request (read thread)
I/O thread 4 state: waiting for i/o request (read thread)
I/O thread 5 state: waiting for i/o request (read thread)
I/O thread 6 state: waiting for i/o request (read thread)
I/O thread 7 state: waiting for i/o request (read thread)
I/O thread 8 state: waiting for i/o request (read thread)
I/O thread 9 state: waiting for i/o request (read thread)
I/O thread 10 state: waiting for i/o request (write thread)
I/O thread 11 state: waiting for i/o request (write thread)
I/O thread 12 state: waiting for i/o request (write thread)
I/O thread 13 state: waiting for i/o request (write thread)
I/O thread 14 state: waiting for i/o request (write thread)
I/O thread 15 state: waiting for i/o request (write thread)
I/O thread 16 state: waiting for i/o request (write thread)
I/O thread 17 state: waiting for i/o request (write thread)

Sometimes I can see a semaphore wait, and I can see the "last time locked by thread ID X" text, but there is no transction with that thread ID X. It would be good to be able to find out that this is in fact one of the IO threads, or other background threads. (What is the thread ID of the purge thread?)

Changed in percona-patches:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → Yasufumi Kinoshita (yasufumi-kinoshita)
Revision history for this message
Stewart Smith (stewart) wrote :

Moving to Percona Server. Is this still valid?

Changed in percona-patches:
status: Confirmed → Won't Fix
Changed in percona-server:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Baron Schwartz (baron-xaprb) wrote : Re: [Bug 514147] Re: SHOW INNODB STATUS should print the thread ID for all background threads

I think we should implement this request. Right now a lot of mutex
contention issues can't be resolved without also having a stack trace
so you can see what thread ID XXXXXXXXXXX is.

Changed in percona-server:
importance: Wishlist → Undecided
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Duplicate of bug 592365 (despite that its title only mentions purge)

Changed in percona-server:
importance: Undecided → Wishlist
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.