You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Shaneal Manek (JIRA)" <ji...@apache.org> on 2012/06/19 02:55:43 UTC

[jira] [Updated] (HBASE-5789) Offer the ability to delete a stale connection by using a configuration instead of HConnection

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

Shaneal Manek updated HBASE-5789:
---------------------------------

    Assignee:     (was: Shaneal Manek)
    
> Offer the ability to delete a stale connection by using a configuration instead of HConnection
> ----------------------------------------------------------------------------------------------
>
>                 Key: HBASE-5789
>                 URL: https://issues.apache.org/jira/browse/HBASE-5789
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.92.1
>            Reporter: Gilad Wolff
>
> The HConnectionManager offers a few methods to manage deletion of connections. The public deleteConnection method does not allow the caller to specify that the connection is stale. The deleteStaleConnection takes an HConnection instance. In order to get the HConnection instance a caller need to call getConnection with the connection's Configuration instance to retrieve the connection. But, getConnection will attempt to connect if the connection has already been deleted, which sort of defeat the purpose of deleting the connection. It also complicates caller as they need to handle ZooKeeperConnectionException. 
> To simplify clients it would be nice to be able to specify "staleConnection" on the deleteConnection method or offer a deleteStaleConnection method that takes a Configuration parameter. Or something completely different? 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira