commit | a1af31e915ec74a5066b8f1dadb15fd8cfaf8d43 | [log] [tgz] |
---|---|---|
author | Enrico Olivelli <eolivelli@gmail.com> | Sat Dec 12 00:01:30 2020 +0100 |
committer | GitHub <noreply@github.com> | Fri Dec 11 15:01:30 2020 -0800 |
tree | a0d759c0624f197a277910a0f2139a89dda7e599 | |
parent | 2d216eb9c903c0d303f132f753f5def8ff9a9fd1 [diff] |
Allow DNSToSwitchMapping to access BookieAddressResolver 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 and when we receive an instance at construction time *Compatibility* - this change is 100% compatible with previous versions Reviewers: Rajan Dhabalia <rdhabalia@apache.org>, Anup Ghatage <ghatage@apache.org> This closes #2519 from eolivelli/fix/dnsswitch-access-bookieaddress-resolver
Apache BookKeeper is a scalable, fault tolerant and low latency storage service optimized for append-only workloads.
It is suitable for being used in following scenarios:
You can also read Turning Ledgers into Logs to learn how to turn ledgers into continuous log streams. If you are looking for a high level log stream API, you can checkout DistributedLog.
For filing bugs, suggesting improvements, or requesting new features, help us out by opening a Github issue or opening an Apache jira.
Subscribe or mail the user@bookkeeper.apache.org list - Ask questions, find answers, and also help other users.
Subscribe or mail the dev@bookkeeper.apache.org list - Join development discussions, propose new ideas and connect with contributors.
Join us on Slack - This is the most immediate way to connect with Apache BookKeeper committers and contributors.
We feel that a welcoming open community is important and welcome contributions.
See Developer Setup to get your local environment setup.
Take a look at our open issues: JIRA Issues Github Issues.
Review our coding style and follow our pull requests to learn about our conventions.
Make your changes according to our contribution guide.