[
https://issues.apache.org/jira/browse/FLINK-30833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17682315#comment-17682315
]
Mason Chen commented on FLINK-30833:
------------------------------------
[~renqs] wdyt about adding this functionality? I can take it on if I can get
your review
> MetricListener supports closing metric groups
> ---------------------------------------------
>
> Key: FLINK-30833
> URL: https://issues.apache.org/jira/browse/FLINK-30833
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / Metrics, Tests
> Affects Versions: 1.16.1
> Reporter: Mason Chen
> Priority: Major
>
> The internal TestingMetricRegistry does not register an action when a metric
> group is closed. This would allow the use of the MetricListener to test logic
> that closes metric groups.
> [https://github.com/apache/flink/blob/44dbb8ec84792540095b826616d0f21b745aa995/flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/metrics/testutils/MetricListener.java#L53]
> This change doesn't require exposing any public API and is transparent.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)