You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sean Busbey (Jira)" <ji...@apache.org> on 2020/07/31 07:35:00 UTC

[jira] [Assigned] (HBASE-24805) HBaseTestingUtility.getConnection should be threadsafe

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

Sean Busbey reassigned HBASE-24805:
-----------------------------------

    Assignee: Sean Busbey

> HBaseTestingUtility.getConnection should be threadsafe
> ------------------------------------------------------
>
>                 Key: HBASE-24805
>                 URL: https://issues.apache.org/jira/browse/HBASE-24805
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>            Reporter: Sean Busbey
>            Assignee: Sean Busbey
>            Priority: Major
>
> the current javadoc for getConnection carries a thread safety warning:
> {code}
> /**
>     * Get a Connection to the cluster. Not thread-safe (This class needs a lot of work to make it
>     * thread-safe).
>     * @return A Connection that can be shared. Don't close. Will be closed on shutdown of cluster.
>     */
>    public Connection getConnection() throws IOException {
> {code}
> We then ignore that warning across our test base. We should make the method threadsafe since the intention is to share a single Connection across all users of the HTU instance.



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