TestIngest.Opts opts = new TestIngest.Opts();
opts.rows = 200000;
TestIngest.ingest(c, opts, new BatchWriterOpts());
c.tableOperations().flush("test_ingest", null, null, false);
UtilWaitThread.sleep(45 * 1000);
Credentials creds = new Credentials("root", new PasswordToken(ROOT_PASSWORD));
MasterMonitorInfo stats = null;
int unassignedTablets = 1;
for (int i = 0; unassignedTablets > 0 && i < 10; i++) {
MasterClientService.Iface client = null;
try {
client = MasterClient.getConnectionWithRetry(c.getInstance());
stats = client.getMasterStats(Tracer.traceInfo(), creds.toThrift(c.getInstance()));
} finally {
if (client != null)
MasterClient.close(client);
}
unassignedTablets = stats.getUnassignedTablets();