jiazhai commented on a change in pull request #8961:
URL: https://github.com/apache/pulsar/pull/8961#discussion_r548473653
##########
File path:
pulsar-zookeeper-utils/src/main/java/org/apache/pulsar/zookeeper/ZkIsolatedBookieEnsemblePlacementPolicy.java
##########
@@ -147,6 +157,11 @@ private ZooKeeperCache getAndSetZkCache(Configuration
conf) {
Map<String, byte[]> customMetadata, List<BookieId> currentEnsemble,
BookieId bookieToReplace, Set<BookieId> excludeBookies)
throws BKNotEnoughBookiesException {
+ // parse the ensemble placement policy from the custom metadata, if it
is present, we will apply it to
+ // the isolation groups for filtering the bookies.
+ Optional<EnsemblePlacementPolicyConfig> ensemblePlacementPolicyConfig =
+ getEnsemblePlacementPolicyConfig(customMetadata);
+
ensemblePlacementPolicyConfig.ifPresent(this::fillIsolationGroupWithEnsemblePlacementPolicyConfig);
Review comment:
@zymap a local var should be enough
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]