susheel-gupta commented on code in PR #7041:
URL: https://github.com/apache/hadoop/pull/7041#discussion_r1758603557
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java:
##########
@@ -3364,12 +3364,29 @@ public boolean moveReservedContainer(RMContainer
toBeMovedContainer,
}
}
- @Override
+ @Override
public long checkAndGetApplicationLifetime(String queueName,
long lifetimeRequestedByApp) {
+ CSQueue queue = getQueue(queueName);
+
+ // This handles the case where the queue does not exist,
+ // addressing the issue related to YARN-11708.
+ if (queue == null) {
+ QueuePath queuePath = new QueuePath(queueName);
+
+ writeLock.lock();
Review Comment:
Thanks for reviewing, yes it should be.
--
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]