@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); }
@Override public String toString() { String logicalSlotString = "(pending)"; try { LogicalSlot slot = singleLogicalSlotFuture.getNow(null); if (slot != null) { logicalSlotString = "(requestId=" + slot.getSlotRequestId() + ", allocationId=" + slot.getAllocationId() + ')'; } } catch (Exception e) { logicalSlotString = '(' + ExceptionUtils.stripCompletionException(e).getMessage() + ')'; } return "SingleTaskSlot{" + "logicalSlot=" + logicalSlotString + ", request=" + getSlotRequestId() + ", group=" + getGroupId() + '}'; } }
@Override public String toString() { String logicalSlotString = "(pending)"; try { LogicalSlot slot = singleLogicalSlotFuture.getNow(null); if (slot != null) { logicalSlotString = "(requestId=" + slot.getSlotRequestId() + ", allocationId=" + slot.getAllocationId() + ')'; } } catch (Exception e) { logicalSlotString = '(' + ExceptionUtils.stripCompletionException(e).getMessage() + ')'; } return "SingleTaskSlot{" + "logicalSlot=" + logicalSlotString + ", request=" + getSlotRequestId() + ", group=" + getGroupId() + '}'; } }
@Override public String toString() { String logicalSlotString = "(pending)"; try { LogicalSlot slot = singleLogicalSlotFuture.getNow(null); if (slot != null) { logicalSlotString = "(requestId=" + slot.getSlotRequestId() + ", allocationId=" + slot.getAllocationId() + ')'; } } catch (Exception e) { logicalSlotString = '(' + ExceptionUtils.stripCompletionException(e).getMessage() + ')'; } return "SingleTaskSlot{" + "logicalSlot=" + logicalSlotString + ", request=" + getSlotRequestId() + ", group=" + getGroupId() + '}'; } }
singleLogicalSlot)) { slotPool.releaseSlot( singleLogicalSlot.getSlotRequestId(), singleLogicalSlot.getSlotSharingGroupId(), singleLogicalSlot.getCoLocationConstraint(),