public class TestHCM extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestHCM.BlockingFilter |
static class |
TestHCM.SleepAndFailFirstTime
This copro sleeps 20 second.
|
| Modifier and Type | Field and Description |
|---|---|
protected static AtomicBoolean |
syncBlockingFilter |
| Constructor and Description |
|---|
TestHCM() |
| Modifier and Type | Method and Description |
|---|---|
void |
abortingHConnectionRemovesItselfFromHCM() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testAdminFactory()
Naive test to check that HConnection#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 |
testConnectionSameness()
Make sure that
Configuration instances that are essentially the
same map to the same HConnection instance. |
void |
testConnectionUniqueness()
Deprecated.
Tests deprecated functionality. Remove in 1.0.
|
void |
testCreateConnection()
Trivial test to verify that nobody messes with
HConnectionManager.createConnection(Configuration) |
void |
testDeleteForZKConnLeak()
Tests that a destroyed connection does not have a live zookeeper.
|
void |
testErrorBackoffTimeCalculation() |
void |
testMulti() |
void |
testOperationTimeout()
Test that an operation can fail if we read the global operation timeout, even if the
individual timeout is fine.
|
void |
testRegionCaching()
Test that when we delete a location using the first row of a region
that we really delete it.
|
protected static final AtomicBoolean syncBlockingFilter
public void testClusterConnection()
throws IOException
IOExceptionpublic void testAdminFactory()
throws IOException
IOException - Unable to construct adminpublic void testConnectionCloseAllowsInterrupt()
throws Exception
Exceptionpublic void testConnectionNotAllowsInterrupt()
throws Exception
Exceptionpublic void testOperationTimeout()
throws Exception
Exceptionpublic void testConnectionIdle()
throws Exception
Exceptionpublic void testConnectionCut()
throws Exception
Exceptionpublic void abortingHConnectionRemovesItselfFromHCM()
throws Exception
Exceptionpublic void testRegionCaching()
throws Exception
Exceptionpublic void testConnectionManagement()
throws Exception
Exceptionpublic void testCacheSeqNums()
throws Exception
Exceptionpublic void testConnectionSameness()
throws Exception
Configuration instances that are essentially the
same map to the same HConnection instance.Exception@Deprecated public void testConnectionUniqueness() throws Exception
ConnectionManager.HConnectionImplementation in the HConnectionManager
class.Exceptionpublic void testCreateConnection()
throws Exception
HConnectionManager.createConnection(Configuration)Exceptionpublic void testConnection()
throws Exception
Exceptionpublic void testErrorBackoffTimeCalculation()
throws Exception
Exceptionpublic void testDeleteForZKConnLeak()
throws Exception
Exceptionpublic void testConnectionRideOverClusterRestart()
throws IOException,
InterruptedException
IOExceptionInterruptedException