brumi1024 commented on code in PR #7041:
URL: https://github.com/apache/hadoop/pull/7041#discussion_r1768296527


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/YarnScheduler.java:
##########
@@ -44,8 +44,10 @@
 import org.apache.hadoop.yarn.api.records.ResourceRequest;
 import org.apache.hadoop.yarn.api.records.SchedulingRequest;
 import org.apache.hadoop.yarn.event.EventHandler;
+import 
org.apache.hadoop.yarn.server.resourcemanager.placement.ApplicationPlacementContext;
 import org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainer;
 import org.apache.hadoop.yarn.exceptions.YarnException;
+import 
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CSQueue;

Review Comment:
   YarnScheduler should not rely on one of its implementations' utility classes.



##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/AbstractYarnScheduler.java:
##########
@@ -1566,6 +1567,14 @@ public long checkAndGetApplicationLifetime(String 
queueName, long lifetime) {
     return lifetime;
   }
 
+  @Override
+  public CSQueue getOrCreateQueueFromPlacementContext(ApplicationId

Review Comment:
   It shouldn't return a CSQueue, as Fair Scheduler or the Fifo Scheduler do 
not utilize Capacity Scheduler queues.



-- 
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]

Reply via email to