reddycharan commented on a change in pull request #1883: Enhance 
EnsemblePlacementPolicy and DNSResolverDecorator to log relevant metrics.
URL: https://github.com/apache/bookkeeper/pull/1883#discussion_r246830833
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookieWatcherImpl.java
 ##########
 @@ -239,22 +263,40 @@ public BookieSocketAddress replaceBookie(int 
ensembleSize, int writeQuorumSize,
             throws BKNotEnoughBookiesException {
         long startTime = MathUtils.nowInNano();
         BookieSocketAddress addr = existingBookies.get(bookieIdx);
+        Pair<BookieSocketAddress, Boolean> replaceBookieResponse;
         BookieSocketAddress socketAddress;
+        boolean isEnsembleAdheringToPlacementPolicy = false;
         try {
             // we exclude the quarantined bookies also first
-            Set<BookieSocketAddress> existingAndQuarantinedBookies = new 
HashSet<BookieSocketAddress>(existingBookies);
-            
existingAndQuarantinedBookies.addAll(quarantinedBookies.asMap().keySet());
-            socketAddress = placementPolicy.replaceBookie(
+            Set<BookieSocketAddress> excludeBookiesAndQuarantinedBookies = new 
HashSet<BookieSocketAddress>(
 
 Review comment:
   followed existing terminology - 'Set<BookieSocketAddress> excludeBookies', 
anyhow dont have strong opinion, will change

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