Class TestZKUtil
java.lang.Object
org.apache.hadoop.hbase.zookeeper.TestZKUtil
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
private static HBaseZKTestingUtility
private static org.apache.hadoop.hbase.zookeeper.ZKWatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate <V> V
callAndIgnoreTransientError
(Callable<V> action) private int
getZNodeDataVersion
(String znode) static void
setUp()
static void
tearDown()
void
A test for HBASE-3238void
Create a znode with datavoid
Test should not fail with NPE when getChildDataAndWatchForNewChildren invoked with wrongNodevoid
void
Create a bunch of znodes in a hierarchy, try deleting one that has childs (it will fail), then delete it recursively, then delete the last znode
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
ZKW
-
-
Constructor Details
-
TestZKUtil
public TestZKUtil()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
IOException
-
testCreateWithParents
public void testCreateWithParents() throws org.apache.zookeeper.KeeperException, InterruptedExceptionCreate a znode with data- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-
testZNodeDeletes
Create a bunch of znodes in a hierarchy, try deleting one that has childs (it will fail), then delete it recursively, then delete the last znode- Throws:
Exception
-
getZNodeDataVersion
- Throws:
org.apache.zookeeper.KeeperException
-
testSetDataWithVersion
- Throws:
Exception
-
callAndIgnoreTransientError
- Throws:
Exception
-
testCreateSilentIsReallySilent
A test for HBASE-3238- Throws:
Exception
-
testGetChildDataAndWatchForNewChildrenShouldNotThrowNPE
Test should not fail with NPE when getChildDataAndWatchForNewChildren invoked with wrongNode- Throws:
Exception
-