Package org.apache.hadoop.hbase.master
Class TestMirroringTableStateManager
java.lang.Object
org.apache.hadoop.hbase.master.TestMirroringTableStateManager
Tests that table state is mirrored out to zookeeper for hbase-1.x clients. Also tests that table
state gets migrated from zookeeper on master start.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
org.junit.rules.TestName
private final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
after()
void
before()
private org.apache.hadoop.hbase.client.TableState.State
getTableStateInZK
(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, org.apache.hadoop.hbase.TableName tableName) void
-
Field Details
-
CLASS_RULE
-
name
-
TEST_UTIL
-
-
Constructor Details
-
TestMirroringTableStateManager
public TestMirroringTableStateManager()
-
-
Method Details
-
before
- Throws:
Exception
-
after
- Throws:
Exception
-
testMirroring
- Throws:
Exception
-
getTableStateInZK
private org.apache.hadoop.hbase.client.TableState.State getTableStateInZK(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, org.apache.hadoop.hbase.TableName tableName) throws org.apache.zookeeper.KeeperException, IOException, InterruptedException - Throws:
org.apache.zookeeper.KeeperException
IOException
InterruptedException
-