YARN-6493. Print requested node partition in assignContainer logs. (Jonathan Hung via wangda)
Change-Id: I3c5c012eb8d0887a4a37d58662bc37aac07ea86e
This commit is contained in:
parent
cef5ef2377
commit
836e8f3e69
@ -88,16 +88,24 @@ protected CSAssignment getCSAssignmentFromAllocateResult(
|
|||||||
} else if (result.getAllocationState() == AllocationState.ALLOCATED){
|
} else if (result.getAllocationState() == AllocationState.ALLOCATED){
|
||||||
// This is a new container
|
// This is a new container
|
||||||
// Inform the ordering policy
|
// Inform the ordering policy
|
||||||
|
RMContainer allocatedContainer = application.getRMContainer(
|
||||||
|
updatedContainer.getId());
|
||||||
|
if (allocatedContainer == null) {
|
||||||
|
LOG.warn("Allocated container for containerId "
|
||||||
|
+ updatedContainer.getId() + " is null.");
|
||||||
|
}
|
||||||
LOG.info("assignedContainer" + " application attempt="
|
LOG.info("assignedContainer" + " application attempt="
|
||||||
+ application.getApplicationAttemptId() + " container="
|
+ application.getApplicationAttemptId() + " container="
|
||||||
+ updatedContainer.getId() + " queue=" + this + " clusterResource="
|
+ updatedContainer.getId() + " queue=" + this + " clusterResource="
|
||||||
+ clusterResource + " type=" + assignment.getType());
|
+ clusterResource + " type=" + assignment.getType()
|
||||||
|
+ " requestedPartition="
|
||||||
|
+ (allocatedContainer == null ? "null" :
|
||||||
|
allocatedContainer.getNodeLabelExpression()));
|
||||||
|
|
||||||
application
|
application
|
||||||
.getCSLeafQueue()
|
.getCSLeafQueue()
|
||||||
.getOrderingPolicy()
|
.getOrderingPolicy()
|
||||||
.containerAllocated(application,
|
.containerAllocated(application, allocatedContainer);
|
||||||
application.getRMContainer(updatedContainer.getId()));
|
|
||||||
|
|
||||||
assignment.getAssignmentInformation().addAllocationDetails(
|
assignment.getAssignmentInformation().addAllocationDetails(
|
||||||
updatedContainer.getId(),
|
updatedContainer.getId(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user