[ https://issues.apache.org/jira/browse/HBASE-25626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17294300#comment-17294300 ]
Anoop Sam John commented on HBASE-25626: ---------------------------------------- Pushed to master branch. Is this applicable for any other branch? Do you know which Jira added HeterogeneousRegionCountCostFunction originally? pls link that > Possible Resource Leak in HeterogeneousRegionCountCostFunction > -------------------------------------------------------------- > > Key: HBASE-25626 > URL: https://issues.apache.org/jira/browse/HBASE-25626 > Project: HBase > Issue Type: Bug > Reporter: Narges Shadab > Assignee: Narges Shadab > Priority: Major > > We noticed a possible resource leak > [here|https://github.com/apache/hbase/blob/b522d2a33e31fbe70c341ea7068428ada8d51bc0/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/HeterogeneousRegionCountCostFunction.java#L225]. > close() is called on {{reader}} at line 228 but if an I/O error occurs at > line 225, {{reader}} remains open since the exception isn't caught locally. > I'll submit a pull request to fix it. -- This message was sent by Atlassian Jira (v8.3.4#803005)