use of org.apache.flink.runtime.jobmaster.SlotRequestId in project flink by apache.
the class SharedSlotTest method testReleaseForbidsSubsequentLogicalSlotAllocations.
@Test(expected = IllegalStateException.class)
public void testReleaseForbidsSubsequentLogicalSlotAllocations() {
final TestingPhysicalSlot physicalSlot = TestingPhysicalSlot.builder().build();
final SharedSlot sharedSlot = new SharedSlot(new SlotRequestId(), physicalSlot, false, () -> {
});
sharedSlot.release(new Exception("test"));
sharedSlot.allocateLogicalSlot();
}
Aggregations