forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature][broker] Strict bookie affinity group strategy (apache#12025)
### Motivation 1、Suppose We have three bookies, `b1, b2, b3`, b1 and b2 are in region `test-region`, b3 doesn't belongs to any region. Namespace `public/test` has set-affinity-group `test-region`. When produce msg to topic under ` public/test` the bookie b3 will also be selected as ensemble, I think it's a violation of isolation. 2、namespace public/default doesn't set any affinity-group, when produce msg to topic under ` public/default`, the bookie b1 and b2 which have been isolated will be selected as ensemble. I think it's also a violation of isolation. ### Modifications ignore the bookies which have not been divided into any region, when using `ZkIsolatedBookieEnsemblePlacementPolicy.java`
- Loading branch information
1 parent
d4e0797
commit 5ebaafd
Showing
11 changed files
with
460 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.