You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2019/04/24 09:30:09 UTC
[hbase] 20/21: HBASE-22295 Fix TestClientOperationTimeout
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch HBASE-21512
in repository https://gitbox.apache.org/repos/asf/hbase.git
commit 15bde1f42aa0f3d30b615c8cdc1e68c4273bcc36
Author: zhangduo <zh...@apache.org>
AuthorDate: Tue Apr 23 21:54:31 2019 +0800
HBASE-22295 Fix TestClientOperationTimeout
Signed-off-by: Michael Stack <st...@apache.org>
---
.../test/java/org/apache/hadoop/hbase/TestClientOperationTimeout.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestClientOperationTimeout.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestClientOperationTimeout.java
index 6c46e50..4dd614b 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestClientOperationTimeout.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestClientOperationTimeout.java
@@ -115,7 +115,7 @@ public class TestClientOperationTimeout {
* Tests that a get on a table throws {@link SocketTimeoutException} when the operation takes
* longer than 'hbase.client.operation.timeout'.
*/
- @Test(expected = SocketTimeoutException.class)
+ @Test(expected = RetriesExhaustedException.class)
public void testGetTimeout() throws Exception {
DELAY_GET = 600;
table.get(new Get(ROW));
@@ -125,7 +125,7 @@ public class TestClientOperationTimeout {
* Tests that a put on a table throws {@link SocketTimeoutException} when the operation takes
* longer than 'hbase.client.operation.timeout'.
*/
- @Test(expected = SocketTimeoutException.class)
+ @Test(expected = RetriesExhaustedException.class)
public void testPutTimeout() throws Exception {
DELAY_MUTATE = 600;