Skip to content

Commit

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

This closes apache#11851.
  • Loading branch information
KarmaGYZ authored and tillrohrmann committed Jun 23, 2020
1 parent d04d1f4 commit 600b5dc
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,9 @@ private void requestSlotFromResourceManager(
checkNotNull(resourceManagerGateway);
checkNotNull(pendingRequest);

log.info("Requesting new slot [{}] and profile {} from resource manager.", pendingRequest.getSlotRequestId(), pendingRequest.getResourceProfile());

final AllocationID allocationId = new AllocationID();

pendingRequest.setAllocationId(allocationId);

pendingRequests.put(pendingRequest.getSlotRequestId(), allocationId, pendingRequest);

pendingRequest.getAllocatedSlotFuture().whenComplete(
Expand All @@ -345,6 +343,9 @@ private void requestSlotFromResourceManager(
}
});

log.info("Requesting new slot [{}] and profile {} with allocation id {} from resource manager.",
pendingRequest.getSlotRequestId(), pendingRequest.getResourceProfile(), allocationId);

CompletableFuture<Acknowledge> rmResponse = resourceManagerGateway.requestSlot(
jobMasterId,
new SlotRequest(jobId, allocationId, pendingRequest.getResourceProfile(), jobManagerAddress),
Expand Down

0 comments on commit 600b5dc

Please sign in to comment.