Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore the empty perRegionPlacement when RegionAwareEnsemblePlacementPolicy#newEnsemble #4106

Conversation

horizonzy
Copy link
Member

Descriptions of the changes in this PR:
If the perRegionPlacement available bookies are empty, do not pick a bookie from it.

for (String region: perRegionPlacement.keySet()) {
if ((null == disallowBookiePlacementInRegionFeatureName)
for (Map.Entry<String, TopologyAwareEnsemblePlacementPolicy> entry : perRegionPlacement.entrySet()) {
String region = entry.getKey();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can filter the empty region in the beginning

if (entry.getValue().knownBookies.isEmpty()) {
                    continue;
                }

@zymap zymap added this to the 4.17.0 milestone Oct 18, 2023
@zymap zymap merged commit 3221aa3 into apache:master Oct 18, 2023
16 checks passed
zymap pushed a commit that referenced this pull request Dec 7, 2023
…ntPolicy#newEnsemble (#4106)

Descriptions of the changes in this PR:
If the `perRegionPlacement` available bookies are empty, do not pick a bookie from it.

(cherry picked from commit 3221aa3)
yangl pushed a commit to yangl/bookkeeper that referenced this pull request Dec 11, 2023
…ntPolicy#newEnsemble (apache#4106)

Descriptions of the changes in this PR:
If the `perRegionPlacement` available bookies are empty, do not pick a bookie from it.
hangc0276 pushed a commit to hangc0276/bookkeeper that referenced this pull request Jan 18, 2024
…ntPolicy#newEnsemble (apache#4106)

Descriptions of the changes in this PR:
If the `perRegionPlacement` available bookies are empty, do not pick a bookie from it.

(cherry picked from commit 3221aa3)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
…ntPolicy#newEnsemble (apache#4106)

Descriptions of the changes in this PR:
If the `perRegionPlacement` available bookies are empty, do not pick a bookie from it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants