public class TestMetaTableLocator extends Object
MetaTableLocator
Modifier and Type | Class and Description |
---|---|
(package private) class |
TestMetaTableLocator.WaitOnMetaThread
Wait on META.
|
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.Abortable |
abortable |
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.ServerName |
SN |
private static HBaseTestingUtility |
UTIL |
private org.apache.hadoop.hbase.zookeeper.ZKWatcher |
watcher |
Constructor and Description |
---|
TestMetaTableLocator() |
Modifier and Type | Method and Description |
---|---|
void |
after() |
static void |
afterClass() |
void |
before() |
static void |
beforeClass() |
private void |
startWaitAliveThenWaitItLives(Thread t,
int ms) |
void |
testMetaLookup()
Test normal operations
|
void |
testNoTimeoutWaitForMeta()
Test waiting on meat w/ no timeout specified.
|
void |
testTimeoutWaitForMeta() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static final org.apache.hadoop.hbase.ServerName SN
private org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher
private org.apache.hadoop.hbase.Abortable abortable
public TestMetaTableLocator()
public static void beforeClass() throws Exception
Exception
public static void afterClass() throws IOException
IOException
public void before() throws IOException
IOException
public void after()
public void testMetaLookup() throws IOException, InterruptedException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, org.apache.zookeeper.KeeperException
IOException
InterruptedException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
org.apache.zookeeper.KeeperException
public void testTimeoutWaitForMeta() throws IOException, InterruptedException
IOException
InterruptedException
public void testNoTimeoutWaitForMeta() throws IOException, InterruptedException, org.apache.zookeeper.KeeperException
IOException
InterruptedException
org.apache.zookeeper.KeeperException
private void startWaitAliveThenWaitItLives(Thread t, int ms)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.