[
https://issues.apache.org/jira/browse/IMPALA-13844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18047857#comment-18047857
]
ASF subversion and git services commented on IMPALA-13844:
----------------------------------------------------------
Commit 1970cc709df637f1e416198fb9a6553b2947bffa in impala's branch
refs/heads/master from Arnab Karmakar
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=1970cc709 ]
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]>
> Implement a /stacks web page
> ----------------------------
>
> Key: IMPALA-13844
> URL: https://issues.apache.org/jira/browse/IMPALA-13844
> Project: IMPALA
> Issue Type: Improvement
> Components: Backend
> Reporter: Quanlong Huang
> Assignee: Arnab Karmakar
> Priority: Major
> Labels: ramp-up
>
> Kudu 1.7 provides a util to dump the stacktraces of all native threads
> (KUDU-2291) and adds a /stacks page in the WebUI for that purpose. An example
> output:
> https://gist.github.com/toddlipcon/b64739ee5fb146ea1953380f57b996c4
> Impala can adds the same page since the code is also ported:
> https://github.com/apache/impala/blob/6f2ac8a4067558a1eee58eb506275d22049fdba3/be/src/kudu/util/debug-util.h#L253
> Kudu code of the handler:
> https://github.com/apache/kudu/blob/4484df479f83541dc2ee4e0efd0499246dc4db70/src/kudu/server/default_path_handlers.cc#L192-L193
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]