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

 ##########
 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:
   eid? I don't see this defined in the local scope.

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