HBASE-12312 Another couple of createTable race conditions
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
parent
42ed215c2d
commit
95282f2ea5
|
@ -141,7 +141,9 @@ public class TestReplicationBase {
|
|||
Admin admin1 = new HBaseAdmin(conf1);
|
||||
Admin admin2 = new HBaseAdmin(conf2);
|
||||
admin1.createTable(table, HBaseTestingUtility.KEYS_FOR_HBA_CREATE_TABLE);
|
||||
utility1.waitUntilAllRegionsAssigned(tableName);
|
||||
admin2.createTable(table, HBaseTestingUtility.KEYS_FOR_HBA_CREATE_TABLE);
|
||||
utility2.waitUntilAllRegionsAssigned(tableName);
|
||||
htable1 = new HTable(conf1, tableName);
|
||||
htable1.setWriteBufferSize(1024);
|
||||
htable2 = new HTable(conf2, tableName);
|
||||
|
|
|
@ -1050,6 +1050,7 @@ public class TestAccessController extends SecureTestUtil {
|
|||
htd.addFamily(new HColumnDescriptor(family1));
|
||||
htd.addFamily(new HColumnDescriptor(family2));
|
||||
admin.createTable(htd);
|
||||
TEST_UTIL.waitUntilAllRegionsAssigned(tableName);
|
||||
|
||||
// create temp users
|
||||
User tblUser = User
|
||||
|
@ -1324,6 +1325,7 @@ public class TestAccessController extends SecureTestUtil {
|
|||
htd.addFamily(new HColumnDescriptor(family1));
|
||||
htd.addFamily(new HColumnDescriptor(family2));
|
||||
admin.createTable(htd);
|
||||
TEST_UTIL.waitUntilAllRegionsAssigned(tableName);
|
||||
|
||||
// create temp users
|
||||
User user = User.createUserForTesting(TEST_UTIL.getConfiguration(), "user", new String[0]);
|
||||
|
@ -1439,6 +1441,7 @@ public class TestAccessController extends SecureTestUtil {
|
|||
htd.addFamily(new HColumnDescriptor(family2));
|
||||
htd.setOwner(USER_OWNER);
|
||||
admin.createTable(htd);
|
||||
TEST_UTIL.waitUntilAllRegionsAssigned(tableName);
|
||||
|
||||
List<UserPermission> perms;
|
||||
|
||||
|
@ -1974,6 +1977,7 @@ public class TestAccessController extends SecureTestUtil {
|
|||
HTableDescriptor htd = new HTableDescriptor(TEST_TABLE2);
|
||||
htd.addFamily(new HColumnDescriptor(TEST_FAMILY));
|
||||
admin.createTable(htd);
|
||||
TEST_UTIL.waitUntilAllRegionsAssigned(TEST_TABLE2);
|
||||
|
||||
// Starting a new RegionServer.
|
||||
JVMClusterUtil.RegionServerThread newRsThread = hbaseCluster
|
||||
|
|
|
@ -128,8 +128,7 @@ public class TestScanEarlyTermination extends SecureTestUtil {
|
|||
htd.setConfiguration(AccessControlConstants.CF_ATTRIBUTE_EARLY_OUT, "true");
|
||||
|
||||
admin.createTable(htd);
|
||||
|
||||
TEST_UTIL.waitTableEnabled(TEST_TABLE.getTableName());
|
||||
TEST_UTIL.waitUntilAllRegionsAssigned(TEST_TABLE.getTableName());
|
||||
}
|
||||
|
||||
@After
|
||||
|
|
Loading…
Reference in New Issue