[ 
https://issues.apache.org/jira/browse/PHOENIX-7186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17946353#comment-17946353
 ] 

Istvan Toth commented on PHOENIX-7186:
--------------------------------------

This has broken tests with HBase 2.4 [~meszinorbi]


{noformat}
[ERROR]   PhoenixEmbeddedDriverTest.testRPCIPv6:607 » SQL ERROR 102 (08001): 
Malformed connection url. Hbase version does not support Master registry for: 
jdbc:phoenix+rpc:[~~1]=123,[~~2]=:234
[ERROR]   PhoenixEmbeddedDriverTest.testZkQuorumConfigs:701 » SQL ERROR 102 
(08001): Malformed connection url. Hbase version does not support Master 
registry for: 
jdbc:phoenix+rpc:localhost=2181,127.23.45.678=7634,v3=1,host123.48576=723::;test=true
{noformat}


Also, the "~~2" "~~1" suggests that there is some problem with the escaping, as 
those characters shouldn't reach HBase.

> Support Square Brackets Notation for IPv6 in JDBC URL
> -----------------------------------------------------
>
>                 Key: PHOENIX-7186
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-7186
>             Project: Phoenix
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 5.2.0, 5.1.4
>            Reporter: Istvan Toth
>            Assignee: Norbert Mészáros
>            Priority: Minor
>              Labels: beginner
>             Fix For: 5.3.0, 5.2.2
>
>
> ZK supports using square branckets around the IP address to resolve the colon 
> ambiguity.
> Phoenix currently requires using backslash to escape the colons.
> Add support for the square bracket notation.
> We still need to escape the colon separating the port from the address.
> i.e. accept:
> "phoenix+zk:[fe:80::01]\:2181::/hbase"
> This currently has to be written as:
> "phoenix+zk:fe\:80\:\:01\:2181::/hbase"



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to