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_r153499178
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.java
 ##########
 @@ -420,6 +426,21 @@ synchronized void logErrorAndReattemptRead(int 
bookieIndex, BookieSocketAddress
             }
         }
 
+        @Override
+        boolean complete(int bookieIndex, BookieSocketAddress host, ByteBuf 
buffer) {
+            boolean completed = super.complete(bookieIndex, host, buffer);
+            if (completed && 
lh.bk.getConf().getEnsemblePlacementPolicySlowBookies()) {
 
 Review comment:
   i don't think we need to check if this is enabled here. if disabled, the 
placement policy should just ignore the extra info.

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