public class TestClientOperationTimeout extends Object
SocketTimeoutException will be thrown.
Using 'hbase.client.scanner.timeout.period' configuration property similar behavior can be
specified for scan related operations such as openScanner(), next(). If that times out
RetriesExhaustedException will be thrown.| Modifier and Type | Class and Description |
|---|---|
static class |
TestClientOperationTimeout.DelayedRSRpcServices
This
RSRpcServices class injects delay for Rpc calls and after executes super methods. |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
name |
| Constructor and Description |
|---|
TestClientOperationTimeout() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
static void |
setUpClass() |
static void |
tearDown() |
void |
testGetTimeout()
Tests that a get on a table throws
SocketTimeoutException when the operation takes
longer than 'hbase.client.operation.timeout'. |
void |
testPutTimeout()
Tests that a put on a table throws
SocketTimeoutException when the operation takes
longer than 'hbase.client.operation.timeout'. |
void |
testScanTimeout()
Tests that scan on a table throws
RetriesExhaustedException when the operation takes
longer than 'hbase.client.scanner.timeout.period'. |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
public TestClientOperationTimeout()
public static void setUpClass() throws Exception
Exceptionpublic void testGetTimeout() throws Exception
SocketTimeoutException when the operation takes
longer than 'hbase.client.operation.timeout'.Exceptionpublic void testPutTimeout() throws Exception
SocketTimeoutException when the operation takes
longer than 'hbase.client.operation.timeout'.Exceptionpublic void testScanTimeout() throws Exception
RetriesExhaustedException when the operation takes
longer than 'hbase.client.scanner.timeout.period'.ExceptionCopyright © 2007–2019 Cloudera. All rights reserved.