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 |
---|---|
private static class |
TestClientOperationTimeout.DelayedRegionServer |
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 |
private static int |
DELAY_GET |
private static int |
DELAY_MUTATE |
private static int |
DELAY_SCAN |
private byte[] |
FAMILY |
org.junit.rules.TestName |
name |
private byte[] |
QUALIFIER |
private byte[] |
ROW |
private org.apache.hadoop.hbase.client.Table |
table |
private static HBaseTestingUtility |
TESTING_UTIL |
private byte[] |
VALUE |
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
private static final HBaseTestingUtility TESTING_UTIL
private static int DELAY_GET
private static int DELAY_SCAN
private static int DELAY_MUTATE
private final byte[] FAMILY
private final byte[] ROW
private final byte[] QUALIFIER
private final byte[] VALUE
public org.junit.rules.TestName name
private org.apache.hadoop.hbase.client.Table table
public TestClientOperationTimeout()
public static void setUpClass() throws Exception
Exception
public void testGetTimeout() throws Exception
SocketTimeoutException
when the operation takes
longer than 'hbase.client.operation.timeout'.Exception
public void testPutTimeout() throws Exception
SocketTimeoutException
when the operation takes
longer than 'hbase.client.operation.timeout'.Exception
public void testScanTimeout() throws Exception
RetriesExhaustedException
when the operation takes
longer than 'hbase.client.scanner.timeout.period'.Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.