Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/23652 )
Change subject: IMPALA-13844: Add /stacks web page to dump native thread stacks ...................................................................... IMPALA-13844: Add /stacks web page to dump native thread stacks Kudu 1.7 introduced a utility (KUDU-2291) and a /stacks web page for dumping stack traces of all native threads. Impala already has the corresponding debug util ported from Kudu, so this patch adds a similar /stacks endpoint to Impala’s WebUI. This enables developers to easily inspect thread states and diagnose deadlocks or hangs via the web interface. Testing: Added unit tests to verify that the /stacks endpoint is available and returns valid thread stack information. TODO: Add jstack output to the /stacks handler via a parameter like `/stacks?include_jvm=true`. Note that `JniUtil.java` currently uses `ThreadMXBean.dumpAllThreads()`, but Java’s `ThreadInfo` does not expose native thread IDs (nids), limiting correlation with native stacks. Change-Id: I9171c89d1d36726d98a4a61ca040d69254f50e92 Reviewed-on: http://gerrit.cloudera.org:8080/23652 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M be/src/common/init.cc M be/src/util/default-path-handlers.cc M be/src/util/thread.cc M be/src/util/thread.h M tests/webserver/test_web_pages.py M www/threadz.tmpl 6 files changed, 215 insertions(+), 0 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/23652 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I9171c89d1d36726d98a4a61ca040d69254f50e92 Gerrit-Change-Number: 23652 Gerrit-PatchSet: 6 Gerrit-Owner: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Pranav Lodha <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]> Gerrit-Reviewer: Riza Suminto <[email protected]> Gerrit-Reviewer: Surya Hebbar <[email protected]>
