-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Detect deadlocks when running hot_threads #42790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Pinging @elastic/es-core-infra |
We discussed this during our weekly fix-it meeting. We think this is a worthwhile addition although we are doubtful about overloading hot_threads for this purpose. Instead, we discussed the possibility of adding a dedicated threads API that would give basic reporting about threads (stacktraces, etc.) and could include deadlock detection, basically bring |
I would like to raise this ticket for discussion with the Core/Infra team to decide if a dedicated threads API is "high hanging fruit" or if it is something that should be on our roadmap. |
We discussed this today in core/infra. We don't think this will get on the roadmap in the short term, but we still see the benefit in doing it, so I've put the "high hanging fruit" tag on it. |
Pinging @elastic/es-core-infra (Team:Core/Infra) |
A node that has deadlocked threads can exhibit all kinds of issues, which can be difficult to explain if not looking for this exact cause (see #41418). It would be convenient if
hot_threads
, which already provides a lot of useful information about the threads, would also provide information on whether there's a deadlock on the respective node.Funnily enough, our code base already has a
DeadlockAnalyzer
(introduced by Shay a very long time ago, but deactivated very early on), so this would make use of this class again, which has been laying dormant for 8 years.The text was updated successfully, but these errors were encountered: