HBASE-11988 AC/VC system table create on postStartMaster fails too often in test.

This commit is contained in:
anoopsjohn 2014-09-18 07:50:16 +05:30
parent 2e4218648a
commit 6a5763673c
1 changed files with 1 additions and 2 deletions

View File

@ -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