Class TestZKUtil
java.lang.Object
org.apache.hadoop.hbase.zookeeper.TestZKUtil
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerprivate static HBaseZKTestingUtilprivate static org.apache.hadoop.hbase.zookeeper.ZKWatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <V> VcallAndIgnoreTransientError(Callable<V> action) private intgetZNodeDataVersion(String znode) static voidsetUp()static voidtearDown()voidA test for HBASE-3238voidCreate a znode with datavoidTest should not fail with NPE when getChildDataAndWatchForNewChildren invoked with wrongNodevoidvoidCreate 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.KeeperExceptionInterruptedException
-
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
-