From e73e741b5cb8292e7bf474f87a0d529205caf575 Mon Sep 17 00:00:00 2001 From: stack Date: Wed, 3 Dec 2014 10:37:32 -0800 Subject: [PATCH] HBASE-12617 Running IntegrationTestBigLinkedList against cluster getting not an instance of org.apache.hadoop.hbase.MiniHBaseCluster (cherry picked from commit d6b1d8cbf7e11b51523cd0290243bce9cb22eb79) --- .../test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java index 393c314e3dd..6e484664772 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java @@ -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;