[
https://issues.apache.org/jira/browse/FLINK-4389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15426813#comment-15426813
]
ASF GitHub Bot commented on FLINK-4389:
---------------------------------------
Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/2363#discussion_r75346843
--- Diff:
flink-runtime/src/main/scala/org/apache/flink/runtime/jobmanager/JobManager.scala
---
@@ -1024,6 +1024,17 @@ class JobManager(
case RequestWebMonitorPort =>
sender() ! ResponseWebMonitorPort(webMonitorPort)
+
+ case MetricRequest =>
+ metricsRegistry match {
+ case Some(registry) =>
+ registry.getQueryService match {
+ case Some(queryService) =>
+ queryService ! sender()
+ case None =>
+ }
+ case None =>
--- End diff --
In both `None` cases you should return a failure message to the sender so
that it does not have to wait until the future times out.
> Expose metrics to Webfrontend
> -----------------------------
>
> Key: FLINK-4389
> URL: https://issues.apache.org/jira/browse/FLINK-4389
> Project: Flink
> Issue Type: Sub-task
> Components: Metrics, Webfrontend
> Affects Versions: 1.1.0
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Fix For: pre-apache
>
>
> https://cwiki.apache.org/confluence/display/FLINK/FLIP-7%3A+Expose+metrics+to+WebInterface
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)