You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Timothy Brown (Jira)" <ji...@apache.org> on 2022/09/07 04:58:00 UTC

[jira] [Assigned] (HUDI-4796) Properly release MetricsReporter resources

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

Timothy Brown reassigned HUDI-4796:
-----------------------------------

    Assignee: Timothy Brown

> Properly release MetricsReporter resources
> ------------------------------------------
>
>                 Key: HUDI-4796
>                 URL: https://issues.apache.org/jira/browse/HUDI-4796
>             Project: Apache Hudi
>          Issue Type: Bug
>            Reporter: Timothy Brown
>            Assignee: Timothy Brown
>            Priority: Major
>
> In [Metrics.java|https://github.com/apache/hudi/blob/f5de4e434b33720d4846c6fe2450539a284ea14f/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metrics/Metrics.java#L63-L65] we are calling the close method on a class instead of the Reporter's `stop` method. The `stop` method according to the Java docs "Should be used to stop channels, streams and release resources." 
> For most reporters these two actions are equivalent but the [JmxReportServer|https://github.com/apache/hudi/blob/master/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metrics/JmxReporterServer.java#L127] has a more involved stop method that must be called. 
>  
> Relates to discussion [here|https://github.com/apache/hudi/issues/5249#issuecomment-1235020970]



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