You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Anoop Sam John (Jira)" <ji...@apache.org> on 2021/03/08 04:13:00 UTC

[jira] [Resolved] (HBASE-25626) Possible Resource Leak in HeterogeneousRegionCountCostFunction

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

Anoop Sam John resolved HBASE-25626.
------------------------------------
    Hadoop Flags: Reviewed
      Resolution: Fixed

> Possible Resource Leak in HeterogeneousRegionCountCostFunction
> --------------------------------------------------------------
>
>                 Key: HBASE-25626
>                 URL: https://issues.apache.org/jira/browse/HBASE-25626
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 3.0.0-alpha-1, 2.3.0, 1.6.0
>            Reporter: Narges Shadab
>            Assignee: Narges Shadab
>            Priority: Major
>             Fix For: 3.0.0-alpha-1, 1.7.0, 2.5.0, 2.3.5, 2.4.2
>
>
> 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)