[ 
https://issues.apache.org/jira/browse/FLINK-26124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17491900#comment-17491900
 ] 

Chesnay Schepler commented on FLINK-26124:
------------------------------------------

The JobManagerMG is never created in the JobMaster constructor but in the 
DispatcherServices.
The JobMaster passes the JobManagerJobMG to the scheduler which registers 
various metrics (i.e., _all_ job related metrics).
The field in the JobMaster only exists such that it can close the group.


> JobManagerMetricGroup is never actually used
> --------------------------------------------
>
>                 Key: FLINK-26124
>                 URL: https://issues.apache.org/jira/browse/FLINK-26124
>             Project: Flink
>          Issue Type: Technical Debt
>          Components: Runtime / Coordination, Runtime / Metrics
>    Affects Versions: 1.16.0
>            Reporter: Matthias Pohl
>            Priority: Minor
>
> The {{JobManagerMetricGroup}} instantiated in the {{JobMaster}}'s constructor 
> is passed in the Scheduler where it is forwarded to the 
> {{DefaultExecutionGraphFactory}} where it is never used. We might want to 
> cleanup this code path.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to