From b076b8e794d19c9d552cff6c14100b1fda0cf520 Mon Sep 17 00:00:00 2001 From: huzheng Date: Fri, 26 May 2017 15:41:00 +0800 Subject: [PATCH] HBASE-18120 (addendum) Fix TestAsyncRegionAdminApi Signed-off-by: Guanghao Zhang --- .../apache/hadoop/hbase/client/TestAsyncRegionAdminApi.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.java index 5ec405efdec..88803e164fa 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.java @@ -26,6 +26,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Random; +import java.util.concurrent.ExecutionException; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; @@ -355,7 +356,7 @@ public class TestAsyncRegionAdminApi extends TestAsyncAdminBase { } HRegionInfo createTableAndGetOneRegion(final TableName tableName) - throws IOException, InterruptedException { + throws ExecutionException, InterruptedException { HTableDescriptor desc = new HTableDescriptor(tableName); desc.addFamily(new HColumnDescriptor(FAMILY)); admin.createTable(desc, Bytes.toBytes("A"), Bytes.toBytes("Z"), 5).get();