Skip to content

Commit 44bc6b5

Browse files
author
Minni Mittal
committed
YARN-10848. Vcore allocation problem with DefaultResourceCalculator
1 parent f813554 commit 44bc6b5

File tree

1 file changed

+1
-1
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/allocator

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ private ContainerAllocation assignContainer(Resource clusterResource,
520520
Resource available = node.getUnallocatedResource();
521521
Resource totalResource = node.getTotalResource();
522522

523-
if (!Resources.fitsIn(rc, capability, totalResource)) {
523+
if (!Resources.fitsIn(capability, available)) {
524524
LOG.warn("Node : " + node.getNodeID()
525525
+ " does not have sufficient resource for ask : " + pendingAsk
526526
+ " node total capability : " + node.getTotalResource());

0 commit comments

Comments
 (0)