dir = FileUtil.createTempDir("LOGTEST", ".log");
root = new LogRoot(dir, LogRoot.DEFAULT_READING_PAGE_SIZE);
}
protected Map<String, LogRecord> readFully(IndexesLogServer storage, String code) throws TException {
LogPageToken token = new LogPageToken();
List<LogRecord> records = Lists.newArrayList();
while (token != null) {
LogPage page = storage.read_page(code, token);
records.addAll(page.get_batch().get_records());
if (page.is_set_next_page_token()) {