File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
hbase-server/src/test/java/org/apache/hadoop/hbase/client Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2929import java .util .concurrent .CountDownLatch ;
3030import java .util .concurrent .TimeUnit ;
3131import java .util .stream .Collectors ;
32-
3332import org .apache .hadoop .hbase .Coprocessor ;
3433import org .apache .hadoop .hbase .CoprocessorEnvironment ;
3534import org .apache .hadoop .hbase .HBaseClassTestRule ;
@@ -273,7 +272,8 @@ public void testRecoverSplitAfterMetaUpdated() throws Exception {
273272 FailingSplitAfterMetaUpdatedMasterObserver observer = master .getMasterCoprocessorHost ()
274273 .findCoprocessor (FailingSplitAfterMetaUpdatedMasterObserver .class );
275274 assertNotNull (observer );
276- try (Admin admin = TEST_UTIL .getConnection ().getAdmin ()) {
275+ try {
276+ AsyncAdmin admin = TEST_UTIL .getAsyncConnection ().getAdmin ();
277277 byte [] splitKey = Bytes .toBytes ("bcd" );
278278 admin .split (TableName .valueOf (testTable ), splitKey );
279279 observer .latch .await (5000 , TimeUnit .MILLISECONDS );
You can’t perform that action at this time.
0 commit comments