Class TestZKUtil
java.lang.Object
org.apache.hadoop.hbase.zookeeper.TestZKUtil
@Tag("org.apache.hadoop.hbase.testclassification.ZKTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestZKUtil
extends Object
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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
-
LOG
-
UTIL
-
ZKW
-
-
Constructor Details
-
TestZKUtil
public TestZKUtil()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
IOException
-
testCreateWithParents
@Test 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
-