pgaref commented on a change in pull request #2513:
URL: https://github.com/apache/hive/pull/2513#discussion_r691884007



##########
File path: 
llap-tez/src/java/org/apache/hadoop/hive/llap/tezplugins/LlapTaskSchedulerService.java
##########
@@ -1845,7 +1845,11 @@ private static boolean 
removeFromRunningTaskMap(TreeMap<Integer, TreeSet<TaskInf
    */
   private boolean shouldCycle(Map<String, List<NodeInfo>> availableHostMap) {
     // short-circuit on resource availability
-    if (availableHostMap.values().stream().mapToInt(List::size).sum() > 0) 
return true;
+    int nodeCnt = 0;

Review comment:
       Functionality is the same indeed, just wanted to avoid using a stream 
here to avoid any performance penalties mapping Integer to Int etc.




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