You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Gregory Chanan (JIRA)" <ji...@apache.org> on 2012/08/23 02:33:41 UTC

[jira] [Updated] (HBASE-6606) Test for reconnecting with HBaseAdmin using unmanaged HConnection

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

Gregory Chanan updated HBASE-6606:
----------------------------------

    Attachment: HBASE-6606.patch

Here's a test (against trunk) that reconnects with HBaseAdmin using an unmanaged connection.
                
> Test for reconnecting with HBaseAdmin using unmanaged HConnection
> -----------------------------------------------------------------
>
>                 Key: HBASE-6606
>                 URL: https://issues.apache.org/jira/browse/HBASE-6606
>             Project: HBase
>          Issue Type: Task
>          Components: client, test
>            Reporter: Gregory Chanan
>            Assignee: Gregory Chanan
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: HBASE-6606.patch
>
>
> HBASE-5058 allowed HBaseAdmin to work with an existing and unmanaged HConnection.  The retry semantics of managed vs unmanaged connections are different.  From the JIRA:
> "For an HConnection that is passed from the outside, it has to be possible to try again. So if the HConnection is managed we retain the old behavior (i.e. only try once, give up after that, even if that failed).
> For an unmanaged connection we try again unless we actually found a master. ."
> I couldn't find any test of this behavior, only that the HBaseAdmin works with an unmanaged connection, i.e. no retry testing.

--
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