HBASE-18120 (addendum) Fix TestAsyncRegionAdminApi

Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
huzheng 2017-05-26 15:41:00 +08:00 committed by Guanghao Zhang
parent 712beb305e
commit b076b8e794
1 changed files with 2 additions and 1 deletions

View File

@ -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();