Package org.apache.hadoop.hbase.client
Class AbstractTestCIOperationTimeout
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestCITimeout
org.apache.hadoop.hbase.client.AbstractTestCIOperationTimeout
- Direct Known Subclasses:
TestCIDeleteOperationTimeout
,TestCIGetOperationTimeout
,TestCIPutOperationTimeout
Based class for testing operation timeout logic for
ConnectionImplementation
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.client.AbstractTestCITimeout
AbstractTestCITimeout.SleepAndFailFirstTime, AbstractTestCITimeout.SleepCoprocessor
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private org.apache.hadoop.hbase.TableName
Fields inherited from class org.apache.hadoop.hbase.client.AbstractTestCITimeout
FAM_NAM, name, TEST_UTIL
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.hadoop.hbase.client.AbstractTestCITimeout
setUpBeforeClass, tearDownAfterClass
-
Field Details
-
LOG
-
tableName
-
-
Constructor Details
-
AbstractTestCIOperationTimeout
public AbstractTestCIOperationTimeout()
-
-
Method Details
-
setUp
- Throws:
IOException
-
execute
- Throws:
IOException
-
testOperationTimeout
Test that an operation can fail if we read the global operation timeout, even if the individual timeout is fine. We do that with:- client side: an operation timeout of 30 seconds
- server side: we sleep 20 second at each attempt. The first work fails, the second one succeeds. But the client won't wait that much, because 20 + 20 > 30, so the client timed out when the server answers.
- Throws:
IOException
-