ASF GitHub Bot commented on BOOKKEEPER-952:

GitHub user yzang opened a pull request:


    Fix RegionAwareEnsemblePlacementPolicy

    allocate bookies evenly as much as possible across all regions

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/yzang/bookkeeper apache_master

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #61
commit d882c282bf2a6082722e078be56227789b7d0de8
Author: Yiming Zang <yz...@twitter.com>
Date:   2016-10-12T22:54:34Z

    fix RegionAwareEnsemblePlacementPolicy test case
    fix the algorithm for balanced placement across regions.


> Fix RegionAwarePlacementPolicy
> ------------------------------
>                 Key: BOOKKEEPER-952
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-952
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-server
>            Reporter: Yiming Zang
> TestRegionAwareEnsemblePlacementPolicy#testNewEnsembleWithThreeRegions is 
> failing because RegionAwareEnsemblePlacementPolicy is not working as expected.
> The current allocation policy is not evenly across the regions. The write 
> quorum size is also not calculated correctly.
> We need  to fix the placement policy and then fix the the test case.

This message was sent by Atlassian JIRA

Reply via email to