HBASE-11988 AC/VC system table create on postStartMaster fails too often in test.
This commit is contained in:
parent
2e4218648a
commit
6a5763673c
|
@ -2798,11 +2798,10 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
|
|||
TableName tableName = TableName.valueOf(table);
|
||||
long startWait = System.currentTimeMillis();
|
||||
waitTableAvailable(admin, table, timeoutMillis);
|
||||
long remainder = System.currentTimeMillis() - startWait;
|
||||
while (!admin.isTableEnabled(tableName)) {
|
||||
assertTrue("Timed out waiting for table to become available and enabled " +
|
||||
Bytes.toStringBinary(table),
|
||||
System.currentTimeMillis() - remainder < timeoutMillis);
|
||||
System.currentTimeMillis() - startWait < timeoutMillis);
|
||||
Thread.sleep(200);
|
||||
}
|
||||
// Finally make sure all regions are fully open and online out on the cluster. Regions may be
|
||||
|
|
Loading…
Reference in New Issue