This is an automated email from the ASF dual-hosted git repository.
trohrmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new d45a5f0 [FLINK-17297] Log the lineage information between
ExecutionAttemptID and SlotRequestID
d45a5f0 is described below
commit d45a5f0db6232b90a0f0dde868ab8415fca201ba
Author: Yangze Guo <[email protected]>
AuthorDate: Wed Apr 22 13:15:18 2020 +0800
[FLINK-17297] Log the lineage information between ExecutionAttemptID and
SlotRequestID
This closes #11850.
---
.../java/org/apache/flink/runtime/executiongraph/Execution.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
a/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
b/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
index 0102ce7..f6702f8 100644
---
a/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
+++
b/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java
@@ -542,8 +542,9 @@ public class Execution implements AccessExecution,
Archiveable<ArchivedExecution
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(
@@ -551,7 +552,8 @@ public class Execution implements AccessExecution,
Archiveable<ArchivedExecution
getPhysicalSlotResourceProfile(vertex),
preferredLocations,
previousAllocationIDs,
-
allPreviousExecutionGraphAllocationIds)));
+
allPreviousExecutionGraphAllocationIds));
+ });
// register call back to cancel slot request in case
that the execution gets canceled
releaseFuture.whenComplete(