bookkeeper
bookkeeper copied to clipboard
support ipv6 address validation
Motivation
current bookkeeper URI does not support ipv6 address validate.
Changes
Support ipv6 address validate. mainly copy codes from https://github.com/apache/pulsar/pull/8120#issue-707796479
fix old workflow,please see #3455 for detail
@horizonzy @zymap Please help take a look, thanks.
@wangjialing218 Would you please help rebase the master? thanks.
Thanks for the help. Do we need some documents for this?
In org.apache.bookkeeper.net.DNS#reverseDns, it can't handle ipv6, also need to fix it.
@horizonzy reverseDns
only execute when advertisedAddress
is not set. In this case, the ipv6 address of the host will be ignored. Let's keep this behave unchanged, bookie server will advertise ipv4 address when advertisedAddress
is not set.
To enable advertise ipv6 address for bookie server, we should set advertisedAddress
with ipv6 address of the host.
Sorry for not getting back to you sooner. I'm reviewing it now.
Close this since it is open for a long time without any updates. Feel free to reopen it if you want to continue