public class TestMetaTableLocator extends Object
MetaTableLocator| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
| Constructor and Description |
|---|
TestMetaTableLocator() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
static void |
afterClass() |
void |
before() |
static void |
beforeClass() |
void |
testGetMetaServerConnectionFails()
Test we survive a connection refused
ConnectException |
void |
testInterruptWaitOnMeta()
Test interruptable while blocking wait on meta.
|
void |
testMetaLookup()
Test normal operations
|
void |
testNoTimeoutWaitForMeta()
Test waiting on meat w/ no timeout specified.
|
void |
testTimeoutWaitForMeta() |
void |
testVerifyMetaRegionLocationFails()
Test get of meta region fails properly if nothing to connect to.
|
void |
testVerifyMetaRegionServerNotRunning()
Test that verifyMetaRegionLocation properly handles getting a
ServerNotRunningException.
|
public static final HBaseClassTestRule CLASS_RULE
public TestMetaTableLocator()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws IOException
IOExceptionpublic void before() throws IOException
IOExceptionpublic void after()
public void testMetaLookup() throws IOException, InterruptedException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, org.apache.zookeeper.KeeperException
IOExceptionInterruptedExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionorg.apache.zookeeper.KeeperExceptionpublic void testInterruptWaitOnMeta() throws IOException, InterruptedException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionInterruptedExceptionpublic void testGetMetaServerConnectionFails() throws IOException, InterruptedException, org.apache.zookeeper.KeeperException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
ConnectExceptionIOExceptionInterruptedExceptionorg.apache.zookeeper.KeeperExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionpublic void testVerifyMetaRegionServerNotRunning() throws IOException, InterruptedException, org.apache.zookeeper.KeeperException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOExceptionInterruptedExceptionorg.apache.zookeeper.KeeperExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionpublic void testVerifyMetaRegionLocationFails() throws IOException, InterruptedException, org.apache.zookeeper.KeeperException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOExceptionInterruptedExceptionorg.apache.zookeeper.KeeperExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionpublic void testTimeoutWaitForMeta() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testNoTimeoutWaitForMeta() throws IOException, InterruptedException, org.apache.zookeeper.KeeperException
IOExceptionInterruptedExceptionorg.apache.zookeeper.KeeperExceptionCopyright © 2007–2019 Cloudera. All rights reserved.