You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2020/01/06 02:59:00 UTC

[jira] [Commented] (HBASE-23648) Evaluate making ConnectionRegistry a singleton class

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

Duo Zhang commented on HBASE-23648:
-----------------------------------

What if I want to connect to multiple hbase clusters?

> Evaluate making ConnectionRegistry a singleton class
> ----------------------------------------------------
>
>                 Key: HBASE-23648
>                 URL: https://issues.apache.org/jira/browse/HBASE-23648
>             Project: HBase
>          Issue Type: Improvement
>          Components: Client
>    Affects Versions: 3.0.0
>            Reporter: Bharath Vissapragada
>            Assignee: Bharath Vissapragada
>            Priority: Major
>
> Based on the discussion between [~stack] and I in the code review for HBASE-23305, the current usage of ConnectionRegistry is ad-hoc, sometimes multiple times per connection.
> I don't see any obvious reason to not make it a singleton (except for testing). This makes it more readable. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)