tasks.add(new Callable<Void>() {
@Override
public Void call() throws Exception {
for (int i = 0; i < repeatInTest; i++) {
QueryHistory history = historyService.read();
histories.add(history);
QueryEntry histEntry = new QueryEntry(new CqlQuery(CqlQueryType.SELECT,
"select * from MyTable2 where id=" + UUID.randomUUID()), 4000 + i);
history.add(histEntry);
verifyHistEntry(history, histEntry);
historyService.store(history);
if (i % 20 == 0) {
asyncFileStore.flush();
}
QueryHistory readHist = historyService.read();
verifyHistEntry(readHist, histEntry);
executedCount.incrementAndGet();
assertEquals(0, storage.getLockRetryCount());
}