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.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.hadoop.hbase.client.AbstractTestCITimeoutAbstractTestCITimeout.SleepAndFailFirstTime, AbstractTestCITimeout.SleepCoprocessor
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.TableNameFields inherited from class org.apache.hadoop.hbase.client.AbstractTestCITimeoutFAM_NAM, name, TEST_UTIL
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.hadoop.hbase.client.AbstractTestCITimeoutsetUpBeforeClass, tearDownAfterClass
- 
Field Details- 
LOG
- 
tableName
 
- 
- 
Constructor Details- 
AbstractTestCIOperationTimeoutpublic AbstractTestCIOperationTimeout()
 
- 
- 
Method Details- 
setUp- Throws:
- IOException
 
- 
execute- Throws:
- IOException
 
- 
testOperationTimeoutTest 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
 
 
-