[ 
https://issues.apache.org/jira/browse/FLINK-30833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mason Chen updated FLINK-30833:
-------------------------------
    Description: For testing purposes, closing a metric group is required to 
verify logic that maintains metrics. The TestMetricGroup needs to extend 
AbstractMetricGroup<> to support this.  (was: 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.)

> TestMetricGroup supports being closed
> -------------------------------------
>
>                 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
>
> For testing purposes, closing a metric group is required to verify logic that 
> maintains metrics. The TestMetricGroup needs to extend AbstractMetricGroup<> 
> to support this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to