HBASE-11030 HBaseTestingUtility.getMiniHBaseCluster should be able to return null.
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1588613 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b80a597997
commit
e542dac2a8
|
@ -932,7 +932,7 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
|
||||||
* @see #startMiniCluster()
|
* @see #startMiniCluster()
|
||||||
*/
|
*/
|
||||||
public MiniHBaseCluster getMiniHBaseCluster() {
|
public MiniHBaseCluster getMiniHBaseCluster() {
|
||||||
if (this.hbaseCluster instanceof MiniHBaseCluster) {
|
if (this.hbaseCluster == null || this.hbaseCluster instanceof MiniHBaseCluster) {
|
||||||
return (MiniHBaseCluster)this.hbaseCluster;
|
return (MiniHBaseCluster)this.hbaseCluster;
|
||||||
}
|
}
|
||||||
throw new RuntimeException(hbaseCluster + " not an instance of " +
|
throw new RuntimeException(hbaseCluster + " not an instance of " +
|
||||||
|
|
Loading…
Reference in New Issue