Package org.apache.hadoop.hbase.client
Class TestConnection
java.lang.Object
org.apache.hadoop.hbase.client.TestConnection
This class is for testing
Connection
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final byte[]
private static final int
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
tearDown()
static void
void
Naive test to check that Connection#getAdmin returns a properly constructed HBaseAdmin objectvoid
void
void
private void
testConnectionClose
(boolean allowsInterrupt) void
Test that we can handle connection close: it will trigger a retry, but the calls will finish.void
Test that connection can become idle without breaking everything.void
void
Trivial test to verify that nobody messes withConnectionFactory.createConnection(Configuration)
void
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
FAM_NAM
-
ROW
-
RPC_RETRY
- See Also:
-
name
-
-
Constructor Details
-
TestConnection
public TestConnection()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
tearDown
- Throws:
IOException
-
testAdminFactory
Naive test to check that Connection#getAdmin returns a properly constructed HBaseAdmin object- Throws:
IOException
- Unable to construct admin
-
testConnectionCloseAllowsInterrupt
Test that we can handle connection close: it will trigger a retry, but the calls will finish.- Throws:
Exception
-
testConnectionNotAllowsInterrupt
- Throws:
Exception
-
testConnectionClose
- Throws:
Exception
-
testConnectionIdle
Test that connection can become idle without breaking everything.- Throws:
Exception
-
testClosing
- Throws:
Exception
-
testCreateConnection
Trivial test to verify that nobody messes withConnectionFactory.createConnection(Configuration)
- Throws:
Exception
-
testLocateRegionsWithRegionReplicas
- Throws:
IOException
-
testClosedConnection
public void testClosedConnection() throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, Throwable- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
Throwable
-
testCancelConnectionMemoryLeak
- Throws:
IOException
InterruptedException
-