use of io.crate.expression.reference.sys.job.JobContextLog in project crate by crate.
the class JobLogIntegrationTest method assertJobLogOnNodesHaveOnlyStatement.
private void assertJobLogOnNodesHaveOnlyStatement(String statement) throws Exception {
for (JobsLogService jobsLogService : internalCluster().getDataNodeInstances(JobsLogService.class)) {
assertBusy(() -> {
assertThat(jobsLogService.jobsLogSize(), is(1));
JobsLogs jobsLogs = jobsLogService.get();
Iterator<JobContextLog> iterator = jobsLogs.jobsLog().iterator();
if (iterator.hasNext()) {
assertThat(iterator.next().statement(), is(statement));
}
});
}
}
Aggregations