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 org.apache.hadoop.hbase.client.Connection |
CONN |
private static int |
DELAY_BATCH_MUTATE |
private static int |
DELAY_GET |
private static int |
DELAY_MUTATE |
private static int |
DELAY_SCAN |
private static byte[] |
FAMILY |
private static byte[] |
QUALIFIER |
private static byte[] |
ROW |
private static org.apache.hadoop.hbase.client.Table |
TABLE |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static HBaseTestingUtility |
UTIL |
private static 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
RetriesExhaustedException when the operation takes
longer than 'hbase.client.operation.timeout'. |
void |
testMultiPutsTimeout()
Tests that a batch mutate 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
RetriesExhaustedException 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 UTIL
private static int DELAY_GET
private static int DELAY_SCAN
private static int DELAY_MUTATE
private static int DELAY_BATCH_MUTATE
private static final org.apache.hadoop.hbase.TableName TABLE_NAME
private static final byte[] FAMILY
private static final byte[] ROW
private static final byte[] QUALIFIER
private static final byte[] VALUE
private static org.apache.hadoop.hbase.client.Connection CONN
private static org.apache.hadoop.hbase.client.Table TABLE
public TestClientOperationTimeout()
public static void setUpClass() throws Exception
Exception
public void testGetTimeout()
RetriesExhaustedException
when the operation takes
longer than 'hbase.client.operation.timeout'.public void testPutTimeout()
RetriesExhaustedException
when the operation takes
longer than 'hbase.client.operation.timeout'.public void testMultiPutsTimeout()
SocketTimeoutException
when the operation
takes longer than 'hbase.client.operation.timeout'.public void testScanTimeout()
RetriesExhaustedException
when the operation takes
longer than 'hbase.client.scanner.timeout.period'.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.