hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhang...@apache.org
Subject [hbase] 21/28: HBASE-22302 Fix TestHbck
Date Sun, 02 Jun 2019 15:21:11 GMT
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 42fec603f81a333bab1f5145df14824ce9e4a85a
Author: zhangduo <zhangduo@apache.org>
AuthorDate: Wed Apr 24 22:30:02 2019 +0800

    HBASE-22302 Fix TestHbck
---
 .../src/test/java/org/apache/hadoop/hbase/client/TestHbck.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHbck.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHbck.java
index d9a7ca9..ee277d9 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHbck.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHbck.java
@@ -29,7 +29,6 @@ import java.util.Optional;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
-
 import org.apache.hadoop.hbase.Coprocessor;
 import org.apache.hadoop.hbase.CoprocessorEnvironment;
 import org.apache.hadoop.hbase.HBaseClassTestRule;
@@ -273,7 +272,8 @@ public class TestHbck {
     FailingSplitAfterMetaUpdatedMasterObserver observer = master.getMasterCoprocessorHost()
         .findCoprocessor(FailingSplitAfterMetaUpdatedMasterObserver.class);
     assertNotNull(observer);
-    try (Admin admin = TEST_UTIL.getConnection().getAdmin()) {
+    try {
+      AsyncAdmin admin = TEST_UTIL.getAsyncConnection().getAdmin();
       byte[] splitKey = Bytes.toBytes("bcd");
       admin.split(TableName.valueOf(testTable), splitKey);
       observer.latch.await(5000, TimeUnit.MILLISECONDS);


Mime
View raw message