brumi1024 commented on a change in pull request #4105:
URL: https://github.com/apache/hadoop/pull/4105#discussion_r837669006
##########
File path:
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/allocator/RegularContainerAllocator.java
##########
@@ -121,10 +123,9 @@ private ContainerAllocation
preCheckForNodeCandidateSet(FiCaSchedulerNode node,
return ContainerAllocation.PRIORITY_SKIPPED;
}
- // AM container allocation doesn't support non-exclusive allocation to
- // avoid painful of preempt an AM container
if (schedulingMode == SchedulingMode.IGNORE_PARTITION_EXCLUSIVITY) {
- if (application.isWaitingForAMContainer()) {
+ if (application.isWaitingForAMContainer() &&
!rmContext.getYarnConfiguration()
+ .getBoolean(ALLOWED_AM_NON_EXCLUSIVE_ALLOCATION, false)) {
Review comment:
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]