You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2018/03/21 22:09:12 UTC

[jira] [Updated] (HBASE-18473) VC.listLabels() erroneously closes any connection

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

stack updated HBASE-18473:
--------------------------
    Fix Version/s:     (was: 3.0.0)

> VC.listLabels() erroneously closes any connection
> -------------------------------------------------
>
>                 Key: HBASE-18473
>                 URL: https://issues.apache.org/jira/browse/HBASE-18473
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.2.0, 2.0.0-alpha-1
>            Reporter: Lars George
>            Assignee: Anoop Sam John
>            Priority: Major
>              Labels: beginner
>             Fix For: 1.4.0, 1.3.2, 1.2.7, 2.0.0-alpha-2, 2.0.0
>
>         Attachments: HBASE-18473.patch
>
>
> In HBASE-13358 the {{VisibilityClient.listLabels()}} was amended to take in a connection from the caller, which totally makes sense. But the patch forgot to remove the unconditional call to {{connection.close()}} in the {{finally}} block:
> {code}
>     finally {
>       if (table != null) {
>         table.close();
>       }
>       if (connection != null) {
>         connection.close();
>       }
>     }
> {code}
> Remove the second {{if}} completely.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)