@Override public CompletableFuture<Boolean> returnAllocatedSlot(LogicalSlot slot) { return gateway .releaseSlot( slot.getSlotRequestId(), slot.getSlotSharingGroupId(), new FlinkException("Slot is being returned to the SlotPool.")) .thenApply( (Acknowledge acknowledge) -> true); }
@Override public CompletableFuture<Boolean> returnAllocatedSlot(LogicalSlot slot) { return gateway .releaseSlot( slot.getSlotRequestId(), slot.getSlotSharingGroupId(), new FlinkException("Slot is being returned to the SlotPool.")) .thenApply( (Acknowledge acknowledge) -> true); }
@Override public CompletableFuture<Boolean> returnAllocatedSlot(LogicalSlot slot) { return gateway .releaseSlot( slot.getSlotRequestId(), slot.getSlotSharingGroupId(), slot.getCoLocationConstraint(), new FlinkException("Slot is being returned to the SlotPool.")) .thenApply( (Acknowledge acknowledge) -> true); }
slotPool.releaseSlot( singleLogicalSlot.getSlotRequestId(), singleLogicalSlot.getSlotSharingGroupId(), singleLogicalSlot.getCoLocationConstraint(), new Exception("Fail to recover the slot"));