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 |
private static byte[] |
FAM_NAM |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static byte[] |
ROW |
private static byte[] |
ROW_X |
private static int |
RPC_RETRY |
protected static AtomicBoolean |
syncBlockingFilter |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME1 |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME2 |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME3 |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestConnectionImplementation() |
Modifier and Type | Method and Description |
---|---|
private static void |
assertEqualsWithJitter(long expected,
long actual) |
private static void |
assertEqualsWithJitter(long expected,
long actual,
long jitterBase) |
private int |
setNumTries(org.apache.hadoop.hbase.client.ConnectionImplementation hci,
int newVal) |
static void |
setUpBeforeClass() |
void |
tearDown() |
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 |
testCancelConnectionMemoryLeak() |
void |
testClosing() |
void |
testClusterConnection() |
void |
testClusterStatus() |
void |
testConnection()
This test checks that one can connect to the cluster with only the
ZooKeeper quorum set.
|
private void |
testConnectionClose(boolean allowsInterrupt) |
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 |
testMetaLookupThreadPoolCreated() |
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
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final org.apache.hadoop.hbase.TableName TABLE_NAME
private static final org.apache.hadoop.hbase.TableName TABLE_NAME1
private static final org.apache.hadoop.hbase.TableName TABLE_NAME2
private static final org.apache.hadoop.hbase.TableName TABLE_NAME3
private static final byte[] FAM_NAM
private static final byte[] ROW
private static final byte[] ROW_X
private static final int RPC_RETRY
public org.junit.rules.TestName name
protected static final AtomicBoolean syncBlockingFilter
public TestConnectionImplementation()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void tearDown() throws IOException
IOException
public void testClusterConnection() throws IOException
IOException
public void testAdminFactory() throws IOException
IOException
- Unable to construct adminpublic void testClusterStatus() throws Exception
Exception
public void testConnectionCloseAllowsInterrupt() throws Exception
Exception
public void testConnectionNotAllowsInterrupt() throws Exception
Exception
private void testConnectionClose(boolean allowsInterrupt) throws Exception
Exception
public void testConnectionIdle() throws Exception
Exception
public void testConnectionCut() throws Exception
Exception
public void testRegionCaching() throws Exception
Exception
public void testConnectionManagement() throws Exception
Exception
public void testCacheSeqNums() throws Exception
Exception
public void testClosing() throws Exception
Exception
public void testCreateConnection() throws Exception
ConnectionFactory.createConnection(Configuration)
Exception
public void testConnection() throws Exception
Exception
private int setNumTries(org.apache.hadoop.hbase.client.ConnectionImplementation hci, int newVal) throws Exception
Exception
public void testErrorBackoffTimeCalculation() throws Exception
Exception
private static void assertEqualsWithJitter(long expected, long actual)
private static void assertEqualsWithJitter(long expected, long actual, long jitterBase)
public void testConnectionRideOverClusterRestart() throws IOException, InterruptedException
IOException
InterruptedException
public void testLocateRegionsWithRegionReplicas() throws IOException
IOException
public void testMetaLookupThreadPoolCreated() throws Exception
Exception
public void testCancelConnectionMemoryLeak() throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.