public class TestConnectionImplementation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestConnectionImplementation.BlockingFilter |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
name |
protected static AtomicBoolean |
syncBlockingFilter |
| Constructor and Description |
|---|
TestConnectionImplementation() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testAdminFactory()
Naive test to check that Connection#getAdmin returns a properly constructed HBaseAdmin object
|
void |
testCacheSeqNums()
Test that stale cache updates don't override newer cached values.
|
void |
testClosing() |
void |
testClusterConnection() |
void |
testClusterStatus() |
void |
testConnection()
This test checks that one can connect to the cluster with only the
ZooKeeper quorum set.
|
void |
testConnectionCloseAllowsInterrupt()
Test that we can handle connection close: it will trigger a retry, but the calls will finish.
|
void |
testConnectionCut()
Test that the connection to the dead server is cut immediately when we receive the
notification.
|
void |
testConnectionIdle()
Test that connection can become idle without breaking everything.
|
void |
testConnectionManagement()
Test that Connection or Pool are not closed when managed externally
|
void |
testConnectionNotAllowsInterrupt() |
void |
testConnectionRideOverClusterRestart() |
void |
testCreateConnection()
Trivial test to verify that nobody messes with
ConnectionFactory.createConnection(Configuration) |
void |
testErrorBackoffTimeCalculation() |
void |
testLocateRegionsWithRegionReplicas() |
void |
testMulti() |
void |
testRegionCaching()
Test that when we delete a location using the first row of a region
that we really delete it.
|
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
protected static final AtomicBoolean syncBlockingFilter
public TestConnectionImplementation()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testClusterConnection() throws IOException
IOExceptionpublic void testAdminFactory() throws IOException
IOException - Unable to construct adminpublic void testClusterStatus() throws Exception
Exceptionpublic void testConnectionCloseAllowsInterrupt() throws Exception
Exceptionpublic void testConnectionNotAllowsInterrupt() throws Exception
Exceptionpublic void testConnectionIdle() throws Exception
Exceptionpublic void testConnectionCut() throws Exception
Exceptionpublic void testRegionCaching() throws Exception
Exceptionpublic void testConnectionManagement() throws Exception
Exceptionpublic void testCacheSeqNums() throws Exception
Exceptionpublic void testClosing() throws Exception
Exceptionpublic void testCreateConnection() throws Exception
ConnectionFactory.createConnection(Configuration)Exceptionpublic void testConnection() throws Exception
Exceptionpublic void testErrorBackoffTimeCalculation() throws Exception
Exceptionpublic void testConnectionRideOverClusterRestart() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testLocateRegionsWithRegionReplicas() throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.