public long isReady(long tid, Master master) throws Exception {
MapCounter<TServerInstance> serversToFlush = new MapCounter<TServerInstance>();
Instance instance = HdfsZooInstance.getInstance();
Connector conn = instance.getConnector(SecurityConstants.getSystemCredentials());
Scanner scanner = new IsolatedScanner(conn.createScanner(Constants.METADATA_TABLE_NAME, Constants.NO_AUTHS));
Range range = new KeyExtent(new Text(tableId), null, startRow == null ? null : new Text(startRow)).toMetadataRange();
if (tableId.equals(Constants.METADATA_TABLE_ID))
range = range.clip(new Range(Constants.ROOT_TABLET_EXTENT.getMetadataEntry(), false, null, true));
scanner.setRange(range);
ColumnFQ.fetch(scanner, Constants.METADATA_COMPACT_COLUMN);
ColumnFQ.fetch(scanner, Constants.METADATA_DIRECTORY_COLUMN);
scanner.fetchColumnFamily(Constants.METADATA_CURRENT_LOCATION_COLUMN_FAMILY);
// TODO since not using tablet iterator, are there any issues w/ splits merges?
long t1 = System.currentTimeMillis();
RowIterator ri = new RowIterator(scanner);