eolivelli commented on a change in pull request #657: DistributionSchedule uses 
int[] rather than HashSet
URL: https://github.com/apache/bookkeeper/pull/657#discussion_r147051360
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/RackawareEnsemblePlacementPolicy.java
 ##########
 @@ -118,17 +118,21 @@ public BookieSocketAddress replaceBookie(
     }
 
     @Override
-    public List<Integer> reorderReadSequence(ArrayList<BookieSocketAddress> 
ensemble,
-                                             List<Integer> writeSet,
-                                             Map<BookieSocketAddress, Long> 
bookieFailureHistory) {
-        return super.reorderReadSequence(ensemble, writeSet, 
bookieFailureHistory);
+    public int[] reorderReadSequence(
+            ArrayList<BookieSocketAddress> ensemble,
+            Map<BookieSocketAddress, Long> bookieFailureHistory,
+            int[] writeSet) {
+        return super.reorderReadSequence(ensemble, bookieFailureHistory,
+                                         writeSet);
     }
 
     @Override
-    public List<Integer> reorderReadLACSequence(ArrayList<BookieSocketAddress> 
ensemble,
-                                                List<Integer> writeSet,
-                                                Map<BookieSocketAddress, Long> 
bookieFailureHistory) {
-        return super.reorderReadLACSequence(ensemble, writeSet, 
bookieFailureHistory);
+    public int[] reorderReadLACSequence(
+            ArrayList<BookieSocketAddress> ensemble,
+            Map<BookieSocketAddress, Long> bookieFailureHistory,
+            int[] writeSet) {
+        return super.reorderReadLACSequence(ensemble, bookieFailureHistory,
 
 Review comment:
   Why do we need to call super? We can just not override the method

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to