Skip to content

Commit

Permalink
Address comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy committed Oct 17, 2023
1 parent f3a4fd5 commit fbdfeb6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ public PlacementResult<List<BookieId>> newEnsemble(int ensembleSize, int writeQu
List<String> availableRegions = new ArrayList<>();
for (Map.Entry<String, TopologyAwareEnsemblePlacementPolicy> entry : perRegionPlacement.entrySet()) {
String region = entry.getKey();
if ((null == disallowBookiePlacementInRegionFeatureName
if (!entry.getValue().knownBookies.isEmpty() && (null == disallowBookiePlacementInRegionFeatureName
|| !featureProvider.scope(region).getFeature(disallowBookiePlacementInRegionFeatureName)
.isAvailable()) && !entry.getValue().knownBookies.isEmpty()) {
.isAvailable())) {
availableRegions.add(region);
}
}
Expand Down

0 comments on commit fbdfeb6

Please sign in to comment.