Search in sources :

Example 1 with KillPlan

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));
}
Also used : KillPlan(io.crate.planner.node.management.KillPlan) Test(org.junit.Test) CrateUnitTest(io.crate.test.integration.CrateUnitTest)

Example 2 with KillPlan

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"));
}
Also used : KillPlan(io.crate.planner.node.management.KillPlan) Test(org.junit.Test) CrateUnitTest(io.crate.test.integration.CrateUnitTest)

Aggregations

KillPlan (io.crate.planner.node.management.KillPlan)2 CrateUnitTest (io.crate.test.integration.CrateUnitTest)2 Test (org.junit.Test)2