Skip to content

Commit

Permalink
[FLINK-17297] Log the lineage information between ExecutionAttemptID …
Browse files Browse the repository at this point in the history
…and SlotRequestID

This closes apache#11850.
  • Loading branch information
KarmaGYZ authored and tillrohrmann committed Jun 23, 2020
1 parent 380fddf commit d45a5f0
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,16 +542,18 @@ private CompletableFuture<LogicalSlot> allocateAndAssignSlotForExecution(

final CompletableFuture<LogicalSlot> logicalSlotFuture =
preferredLocationsFuture.thenCompose(
(Collection<TaskManagerLocation> preferredLocations) ->
slotProviderStrategy.allocateSlot(
(Collection<TaskManagerLocation> preferredLocations) -> {
LOG.info("Allocating slot with SlotRequestID {} for the execution attempt {}.", slotRequestId, attemptId);
return slotProviderStrategy.allocateSlot(
slotRequestId,
toSchedule,
SlotProfile.priorAllocation(
vertex.getResourceProfile(),
getPhysicalSlotResourceProfile(vertex),
preferredLocations,
previousAllocationIDs,
allPreviousExecutionGraphAllocationIds)));
allPreviousExecutionGraphAllocationIds));
});

// register call back to cancel slot request in case that the execution gets canceled
releaseFuture.whenComplete(
Expand Down

0 comments on commit d45a5f0

Please sign in to comment.