horizonzy commented on code in PR #3359:
URL: https://github.com/apache/bookkeeper/pull/3359#discussion_r914468095


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/TopologyAwareEnsemblePlacementPolicy.java:
##########
@@ -790,6 +794,113 @@ public void updateBookieInfo(Map<BookieId, BookieInfo> 
bookieInfoMap) {
         }
     }
 
+    @Override
+    public Map<Integer, BookieId> 
replaceNotAdheringPlacementPolicyBookie(List<BookieId> ensemble, int 
writeQuorumSize,
+            int ackQuorumSize) {
+        if (CollectionUtils.isEmpty(ensemble)) {
+            return Collections.emptyMap();
+        }
+        PlacementPolicyAdherence ensembleAdheringToPlacementPolicy = 
isEnsembleAdheringToPlacementPolicy(ensemble,
+                writeQuorumSize, ackQuorumSize);
+        if (PlacementPolicyAdherence.FAIL != 
ensembleAdheringToPlacementPolicy) {

Review Comment:
   Needn't do it. `MEET_SOFT` means the ensemble network location is more than 
`minNumZonesPerWriteQuorum`, but the one zone holds two same `upgradeDomain` 
bookies.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to