public class TestZooKeeper
extends java.lang.Object
| Constructor and Description |
|---|
TestZooKeeper() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
setUp() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testClientSessionExpired()
See HBASE-1232 and http://wiki.apache.org/hadoop/ZooKeeper/FAQ#4.
|
void |
testCreateSilentIsReallySilent()
A test for HBASE-3238
|
void |
testCreateWithParents()
Create a znode with data
|
void |
testGetChildDataAndWatchForNewChildrenShouldNotThrowNPE()
Test should not fail with NPE when getChildDataAndWatchForNewChildren
invoked with wrongNode
|
void |
testLogSplittingAfterMasterRecoveryDueToZKExpiry()
Tests whether the logs are split when master recovers from a expired zookeeper session and an
RS goes down.
|
void |
testMasterSessionExpired() |
void |
testMasterZKSessionRecoveryFailure()
Master recovery when the znode already exists.
|
void |
testMultipleZK() |
void |
testRegionAssignmentAfterMasterRecoveryDueToZKExpiry()
Tests that the master does not call retainAssignment after recovery from expired zookeeper
session.
|
void |
testRegionServerSessionExpired() |
void |
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
|
public static void setUpBeforeClass()
throws java.lang.Exception
java.lang.Exceptionpublic static void tearDownAfterClass()
throws java.lang.Exception
java.lang.Exceptionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void after()
throws java.lang.Exception
java.lang.Exceptionpublic void testClientSessionExpired()
throws java.lang.Exception
java.io.IOExceptionjava.lang.InterruptedExceptionjava.lang.Exceptionpublic void testRegionServerSessionExpired()
throws java.lang.Exception
java.lang.Exceptionpublic void testMasterSessionExpired()
throws java.lang.Exception
java.lang.Exceptionpublic void testMasterZKSessionRecoveryFailure()
throws java.lang.Exception
testMasterSessionExpired() because here
the master znode will exist in ZK.java.lang.Exceptionpublic void testMultipleZK()
throws java.io.IOException,
java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException
java.io.IOExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessExceptionpublic void testCreateWithParents()
throws java.lang.Exception
java.lang.Exceptionpublic void testZNodeDeletes()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateSilentIsReallySilent()
throws java.lang.InterruptedException,
KeeperException,
java.io.IOException
java.io.IOException - A connection attempt to zk failedjava.lang.InterruptedException - One of the non ZKUtil actions was interruptedKeeperException - Any of the zookeeper connections had a
KeeperExceptionpublic void testGetChildDataAndWatchForNewChildrenShouldNotThrowNPE()
throws java.lang.Exception
java.lang.Exceptionpublic void testRegionAssignmentAfterMasterRecoveryDueToZKExpiry()
throws java.lang.Exception
java.lang.Exceptionpublic void testLogSplittingAfterMasterRecoveryDueToZKExpiry()
throws java.io.IOException,
KeeperException,
java.lang.InterruptedException
java.io.IOExceptionKeeperExceptionjava.lang.InterruptedException