+ "sec; sleeping for " + waitTime/1000 + "sec for store to stabilize");
Thread.sleep(waitTime);
}
MultiThreadedWriter writer = new MultiThreadedWriter(dataGen, conf, TABLE_NAME);
MultiThreadedReader reader = new MultiThreadedReader(dataGen, conf, TABLE_NAME, 100);
// reader.getMetrics().enable();
reader.linkToWriter(writer);
long testStartTime = System.currentTimeMillis();
writer.start(startKey, endKey, writeThreads);
reader.start(startKey, endKey, readThreads);
writer.waitForFinish();
reader.waitForFinish();
// reader.waitForVerification(300000);
// reader.abortAndWaitForFinish();
status("Readers and writers stopped for test " + description);
boolean success = writer.getNumWriteFailures() == 0;
if (!success) {
LOG.error("Write failed");
} else {
success = reader.getNumReadErrors() == 0 && reader.getNumReadFailures() == 0;
if (!success) {
LOG.error("Read failed");
}
}