lhotari opened a new pull request #9766: URL: https://github.com/apache/pulsar/pull/9766
### Motivation When a tests times out, a thread dump will be printed using `org.apache.pulsar.tests.ThreadDumpUtil` . This class produces output that isn't as rich as the output of `jstack -l <pid>`. However it's possible to produce a similar thread dump in Java programmatically. The benefit of a richer and standard thread dump is that it's possible to analyse it using standard tooling such as https://jstack.review/ ### Modifications - Improve threaddump by using DiagnosticCommandMBean to do the threaddump - include full information about locks in the output - output is similar to what `jstack -l <pid>` produces - fallback to previous method if DiagnosticCommandMBean fails to produce the threaddump ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
