-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Make ZkBookieRackAffinityMapping work as expected #6917
Conversation
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
3 similar comments
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
@sijie Seems the test failure is related with this change:
|
if (biOpt.isPresent()) { | ||
bi = biOpt.get(); | ||
} else { | ||
updateRacksWithHost(racksWithHost); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to update it here? seems this is a get operation, If it is not present, there is no need to update?
would like to remove it out of 2.5.2 |
@jiazhai: fix the comment. the BookiesRackConfiguration expects the key to be |
### Motivation The current bookie rack affinity logic is problematic. The rack map is expecting a `host:port` pair but the bookkeeper DNS resolver is expecting a hostname or a host address. ### Modification - Introduce a new HashMap to keep a mapping between hostname and bookie info. It maintains the mapping for bookkeeper DNS resolver to lookup the network location.
### Motivation The current bookie rack affinity logic is problematic. The rack map is expecting a `host:port` pair but the bookkeeper DNS resolver is expecting a hostname or a host address. ### Modification - Introduce a new HashMap to keep a mapping between hostname and bookie info. It maintains the mapping for bookkeeper DNS resolver to lookup the network location.
### Motivation The current bookie rack affinity logic is problematic. The rack map is expecting a `host:port` pair but the bookkeeper DNS resolver is expecting a hostname or a host address. ### Modification - Introduce a new HashMap to keep a mapping between hostname and bookie info. It maintains the mapping for bookkeeper DNS resolver to lookup the network location.
Motivation
The current bookie rack affinity logic is problematic. The rack map is expecting a
host:port
pair but the bookkeeper DNS resolver is expecting a hostname or a host address.Modification
Verification
I have verified it worked well in setting up rackware placement policy.