HBASE-12617 Running IntegrationTestBigLinkedList against cluster getting not an instance of org.apache.hadoop.hbase.MiniHBaseCluster
This commit is contained in:
parent
13a1eaec09
commit
d6b1d8cbf7
|
@ -2582,9 +2582,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