eolivelli opened a new pull request #2519: URL: https://github.com/apache/bookkeeper/pull/2519
In order to allow Pulsar to leverage BookieId with custom Bookie-To-Rack Mapping (ZkBookieRackAffinityMapping) we need to inject the BookieAddressResolver into it. There is not way to do it currently because it is created by the BookKeeper client, and we have to inject the same BookieAddressResolver used by the client itself. *Changes* - add new setBookieAddressResolver method (use 'default' methods in order to preserve backward compatibility - call the new method in every point in which we instantiate a DNSToSwitchMapping *Compatibility* - this change is 100% compatible with previous versions ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
