FrankChen021 commented on a change in pull request #10363:
URL: https://github.com/apache/druid/pull/10363#discussion_r484658436



##########
File path: 
server/src/main/java/org/apache/druid/segment/loading/LeastBytesUsedStorageLocationSelectorStrategy.java
##########
@@ -32,11 +34,17 @@
 public class LeastBytesUsedStorageLocationSelectorStrategy implements 
StorageLocationSelectorStrategy
 {
   private static final Ordering<StorageLocation> ORDERING = 
Ordering.from(Comparator
-      .comparingLong(StorageLocation::currSizeBytes));
+                                                                              
.comparingLong(StorageLocation::currSizeBytes));

Review comment:
       It's accidentally formatted by IDEA. Been fixed.

##########
File path: 
server/src/main/java/org/apache/druid/segment/loading/MostAvailableSizeStorageLocationSelectorStrategy.java
##########
@@ -32,12 +34,18 @@
 public class MostAvailableSizeStorageLocationSelectorStrategy implements 
StorageLocationSelectorStrategy
 {
   private static final Ordering<StorageLocation> ORDERING = 
Ordering.from(Comparator
-      .comparingLong(StorageLocation::availableSizeBytes)
-      .reversed());
+                                                                              
.comparingLong(StorageLocation::availableSizeBytes)

Review comment:
       It's accidentally formatted by IDEA. Been fixed.




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

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