public class TestZooKeeper extends 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 void testClientSessionExpired()
                              throws Exception
IOExceptionInterruptedExceptionExceptionpublic void testRegionServerSessionExpired()
                                    throws Exception
Exceptionpublic void testMasterZKSessionRecoveryFailure()
                                        throws Exception
testMasterSessionExpired() because here
  the master znode will exist in ZK.Exceptionpublic void testMultipleZK()
                    throws IOException,
                           NoSuchMethodException,
                           InvocationTargetException,
                           IllegalAccessException
public void testCreateWithParents()
                           throws Exception
Exceptionpublic void testZNodeDeletes()
                      throws Exception
Exceptionpublic void testCreateSilentIsReallySilent()
                                    throws InterruptedException,
                                           KeeperException,
                                           IOException
IOException - A connection attempt to zk failedInterruptedException - One of the non ZKUtil actions was interruptedKeeperException - Any of the zookeeper connections had a
 KeeperExceptionpublic void testGetChildDataAndWatchForNewChildrenShouldNotThrowNPE()
                                                             throws Exception
Exceptionpublic void testRegionAssignmentAfterMasterRecoveryDueToZKExpiry()
                                                          throws Exception
Exceptionpublic void testLogSplittingAfterMasterRecoveryDueToZKExpiry()
                                                      throws IOException,
                                                             KeeperException,
                                                             InterruptedException
IOExceptionKeeperExceptionInterruptedException