You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yao Zhang (Jira)" <ji...@apache.org> on 2021/07/02 07:38:00 UTC
[jira] [Commented] (FLINK-23102) Accessing FlameGraphs while not
being enabled returns an exception
[ https://issues.apache.org/jira/browse/FLINK-23102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17373297#comment-17373297 ]
Yao Zhang commented on FLINK-23102:
-----------------------------------
Hi [~NicoK],
After examining the code, I discovered that if you did not enable rest.flamegraph.enabled option, the web endpoint for flame graph would be skipped. As shown below:
{code:java}
if (clusterConfiguration.get(RestOptions.ENABLE_FLAMEGRAPH)) {
final JobVertexFlameGraphHandler jobVertexFlameGraphHandler =
new JobVertexFlameGraphHandler(
leaderRetriever,
timeout,
responseHeaders,
executionGraphCache,
executor,
initializeThreadInfoTracker(executor));
handlers.add(
Tuple2.of(
jobVertexFlameGraphHandler.getMessageHeaders(),
jobVertexFlameGraphHandler));
}
{code}
I plan to change it so that it would send a empty flame graph instead of a missing file error.
Could you pls assign this to me?
> Accessing FlameGraphs while not being enabled returns an exception
> ------------------------------------------------------------------
>
> Key: FLINK-23102
> URL: https://issues.apache.org/jira/browse/FLINK-23102
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Web Frontend
> Affects Versions: 1.13.1
> Reporter: Nico Kruber
> Priority: Major
> Labels: usability
> Attachments: image-2021-06-22-17-36-47-730.png
>
>
> Trying to retrieve the FlameGraph in a job that doesn't have it enabled returns this ugly exception:
> !image-2021-06-22-17-36-47-730.png!
> Instead, it could mention that this feature is not enabled and describe how to enable it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)