public void waitTableAvailable(TableName table, long timeoutMillis)
    throws InterruptedException, IOException {
    waitFor(timeoutMillis, predicateTableAvailable(table));
  }
Wait until all regions in a table have been assigned. Waits default timeout before giving up
(30 seconds).
@param table Table to wait on.
hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtil.java