HBASE-25773 TestSnapshotScannerHDFSAclController.setupBeforeClass is flaky (#3160)
This commit is contained in:
parent
edde01c605
commit
7f6b778c14
|
@ -44,6 +44,7 @@ import org.apache.hadoop.hbase.client.TableDescriptor;
|
|||
import org.apache.hadoop.hbase.client.TableDescriptorBuilder;
|
||||
import org.apache.hadoop.hbase.coprocessor.CoprocessorHost;
|
||||
import org.apache.hadoop.hbase.master.cleaner.HFileCleaner;
|
||||
import org.apache.hadoop.hbase.procedure2.ProcedureTestingUtility;
|
||||
import org.apache.hadoop.hbase.security.User;
|
||||
import org.apache.hadoop.hbase.testclassification.LargeTests;
|
||||
import org.apache.hadoop.hbase.testclassification.SecurityTests;
|
||||
|
@ -98,6 +99,8 @@ public class TestSnapshotScannerHDFSAclController {
|
|||
+ SnapshotScannerHDFSAclController.class.getName());
|
||||
|
||||
TEST_UTIL.startMiniCluster();
|
||||
ProcedureTestingUtility.waitAllProcedures(
|
||||
TEST_UTIL.getMiniHBaseCluster().getMaster().getMasterProcedureExecutor());
|
||||
TEST_UTIL.waitTableAvailable(PermissionStorage.ACL_TABLE_NAME);
|
||||
admin = TEST_UTIL.getAdmin();
|
||||
rootDir = TEST_UTIL.getDefaultRootDirPath();
|
||||
|
|
|
@ -32,6 +32,7 @@ import org.apache.hadoop.hbase.TableName;
|
|||
import org.apache.hadoop.hbase.client.Admin;
|
||||
import org.apache.hadoop.hbase.client.Table;
|
||||
import org.apache.hadoop.hbase.coprocessor.CoprocessorHost;
|
||||
import org.apache.hadoop.hbase.procedure2.ProcedureTestingUtility;
|
||||
import org.apache.hadoop.hbase.security.User;
|
||||
import org.apache.hadoop.hbase.testclassification.LargeTests;
|
||||
import org.apache.hadoop.hbase.testclassification.SecurityTests;
|
||||
|
@ -85,6 +86,8 @@ public class TestSnapshotScannerHDFSAclController2 {
|
|||
+ SnapshotScannerHDFSAclController.class.getName());
|
||||
|
||||
TEST_UTIL.startMiniCluster();
|
||||
ProcedureTestingUtility.waitAllProcedures(
|
||||
TEST_UTIL.getMiniHBaseCluster().getMaster().getMasterProcedureExecutor());
|
||||
TEST_UTIL.waitTableAvailable(PermissionStorage.ACL_TABLE_NAME);
|
||||
admin = TEST_UTIL.getAdmin();
|
||||
Path rootDir = TEST_UTIL.getDefaultRootDirPath();
|
||||
|
|
Loading…
Reference in New Issue