hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srikanth Srungarapu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14394) Properly close the connection after reading records from table.
Date Fri, 11 Sep 2015 05:57:45 GMT

    [ https://issues.apache.org/jira/browse/HBASE-14394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14740245#comment-14740245
] 

Srikanth Srungarapu commented on HBASE-14394:
---------------------------------------------

Currently, we are closing the resources only in case of exception i.e. in catch block. 
{code}
catch (IOException ioe) {
       // If there is an exception make sure that all
       // resources are closed and released.
-      connection.close();
-      table.close();
       trr.close();
       throw ioe;
{code}

This patch ensures resources get closed in _all_ cases.

> Properly close the connection after reading records from table.
> ---------------------------------------------------------------
>
>                 Key: HBASE-14394
>                 URL: https://issues.apache.org/jira/browse/HBASE-14394
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Srikanth Srungarapu
>            Assignee: Srikanth Srungarapu
>            Priority: Minor
>         Attachments: HBASE-14394.patch, HBASE-14394_v2.patch
>
>
> This was brought to notice by one of our observant customers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message