HBASE-24805 HBaseTestingUtility.getConnection should be threadsafe
commit86ebbdd8a2df89de37c2c3bd50e64292eaf28b11
authorSean Busbey <busbey@apache.org>
Fri, 31 Jul 2020 07:34:24 +0000 (31 02:34 -0500)
committerSean Busbey <busbey@apache.org>
Sun, 2 Aug 2020 04:19:07 +0000 (1 23:19 -0500)
tree7d3e6edefa9ffbf66b161e27f66a6be1fb2539d4
parent3470feed91740585df54a0d71420f5fd45e7c971
HBASE-24805 HBaseTestingUtility.getConnection should be threadsafe

* refactor how we use connection and async connection to rely on their access methods
* refactor initialization and cleanup of the shared connection
* incompatibly change HCTU's Configuration member variable to be final so it can be safely accessed from multiple threads.

Closes #2180

Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseCommonTestingUtility.java
hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java