Sean Busbey created HBASE-24805:
-----------------------------------

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


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)

Reply via email to