HBASE-12617 Running IntegrationTestBigLinkedList against cluster getting not an instance of org.apache.hadoop.hbase.MiniHBaseCluster
(cherry picked from commit d6b1d8cbf7
)
This commit is contained in:
parent
6b8a725191
commit
e73e741b5c
|
@ -2491,9 +2491,6 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
|
|||
*/
|
||||
public Connection getConnection() throws IOException {
|
||||
if (this.connection == null) {
|
||||
if (getMiniHBaseCluster() == null) {
|
||||
throw new IllegalStateException("You cannot have a Connection if cluster is not up");
|
||||
}
|
||||
this.connection = ConnectionFactory.createConnection(this.conf);
|
||||
}
|
||||
return this.connection;
|
||||
|
|
Loading…
Reference in New Issue