ferdelyi commented on code in PR #6455:
URL: https://github.com/apache/hadoop/pull/6455#discussion_r1453092600


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/policy/PriorityUtilizationQueueOrderingPolicy.java:
##########
@@ -256,7 +257,7 @@ public Iterator<CSQueue> getAssignmentIterator(String 
partition) {
 
     // Sort the snapshot of the queues in order to avoid breaking the 
prerequisites of TimSort.
     // See YARN-10178 for details.
-    return queues.stream().map(PriorityQueueResourcesForSorting::new).sorted(
+    return 
Lists.newArrayList(queues.listIterator()).stream().map(PriorityQueueResourcesForSorting::new).sorted(

Review Comment:
   Thank you @tomicooler for the quick turnaround time in the review. I've 
implemented your suggestions.



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