support ipv6 address validation#3158
Conversation
| multiHosts.toArray(new String[multiHosts.size()]), | ||
| serviceURI.getServicePath(), | ||
| serviceURI.getUri()); | ||
| } |
There was a problem hiding this comment.
Do we need to deal with hosts.size() == 1 ?
There was a problem hiding this comment.
No, URI.create(uriStr) could handle this case, testIPv6Address() cover this test case
bookkeeper-common/src/main/java/org/apache/bookkeeper/common/net/ServiceURI.java
Show resolved
Hide resolved
StevenLuMT
left a comment
There was a problem hiding this comment.
updating is not very versatile
I think you can add a new class named ServiceIpv6URI
bookkeeper-common/src/test/java/org/apache/bookkeeper/common/net/ServiceURITest.java
Show resolved
Hide resolved
|
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? |
1749296 to
7c82c27
Compare
horizonzy
left a comment
There was a problem hiding this comment.
In org.apache.bookkeeper.net.DNS#reverseDns, it can't handle ipv6, also need to fix it.
8ca23e1 to
c879e26
Compare
@horizonzy To enable advertise ipv6 address for bookie server, we should set |
|
Sorry for not getting back to you sooner. I'm reviewing it now. |
horizonzy
left a comment
There was a problem hiding this comment.
Which case does the code cover?
|
Close this since it is open for a long time without any updates. Feel free to reopen it if you want to continue |
Motivation
current bookkeeper URI does not support ipv6 address validate.
Changes
URI.createtoServiceURI.createto support multi ipv6 address of zookeeper, sinceURI.createdoes not support multi ipv6 address validation.