meetjain74 opened a new issue, #8704:
URL: https://github.com/apache/storm/issues/8704

   In the class 
`https://github.com/apache/storm/blob/v2.8.8/storm-server/src/main/java/org/apache/storm/scheduler/IsolationScheduler.java`
 at line 323 to line 329, we are sorting and then shuffling
   
   ```
   Collections.sort(sortHostAssignSlots, new Comparator<HostAssignableSlots>() {
       @Override
       public int compare(HostAssignableSlots o1, HostAssignableSlots o2) {
           return o2.getWorkerSlots().size() - o1.getWorkerSlots().size();
       }
   });
   Collections.shuffle(sortHostAssignSlots);
   ```
   
   If we are shuffling after sorting, sorting does not mean anything. Is my 
understanding incorrect or is this a genuine bug? 


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

Reply via email to