use of io.crate.planner.node.management.KillPlan in project crate by crate.
the class PlannerTest method testKillPlanAll.
@Test
public void testKillPlanAll() throws Exception {
KillPlan killPlan = e.plan("kill all");
assertThat(killPlan, instanceOf(KillPlan.class));
assertThat(killPlan.jobId(), notNullValue());
assertThat(killPlan.jobToKill().isPresent(), is(false));
}
use of io.crate.planner.node.management.KillPlan in project crate by crate.
the class PlannerTest method testKillPlanJobs.
@Test
public void testKillPlanJobs() throws Exception {
KillPlan killJobsPlan = e.plan("kill '6a3d6fb6-1401-4333-933d-b38c9322fca7'");
assertThat(killJobsPlan.jobId(), notNullValue());
assertThat(killJobsPlan.jobToKill().get().toString(), is("6a3d6fb6-1401-4333-933d-b38c9322fca7"));
}
Aggregations