philipsu522 commented on a change in pull request #776: Issue 709: Add Slow 
Bookkeeper Servers to Placement Policy for read ordering
URL: https://github.com/apache/bookkeeper/pull/776#discussion_r153605472
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.java
 ##########
 @@ -92,11 +92,17 @@
             this.ensemble = ensemble;
 
             if (lh.bk.isReorderReadSequence()) {
+                DistributionSchedule.WriteSet unorderedWriteSet = 
lh.getDistributionSchedule().getWriteSet(entryId);
+                BookKeeperServerHealthInfo bookKeeperServerHealthInfo = 
generateHealthInfoForWriteSet(
+                    unorderedWriteSet,
+                    ensemble,
+                    lh
+                );
                 writeSet = lh.bk.getPlacementPolicy()
                     .reorderReadSequence(
                             ensemble,
-                            lh.bookieFailureHistory.asMap(),
-                            lh.distributionSchedule.getWriteSet(eId));
+                            bookKeeperServerHealthInfo,
+                            lh.distributionSchedule.getWriteSet(eid));
 
 Review comment:
   Not sure why it's showing "eId" when the change looks like it says "entryId" 
now. In any case, this value defined in the super class LedgerEntry:
   ```
       abstract class LedgerEntryRequest extends LedgerEntry implements 
SpeculativeRequestExecutor {
   ```
   and
   ```
   public class LedgerEntry
       implements org.apache.bookkeeper.client.api.LedgerEntry {
   
       final long ledgerId;
       long entryId;
       long length;
       ByteBuf data;
   ```

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