[
https://issues.apache.org/jira/browse/PHOENIX-6995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tanuj Khurana updated PHOENIX-6995:
-----------------------------------
Description:
HA connections expect the jdbc url string in the form:
{code:java}
jdbc:phoenix:[127.0.0.1:56162:/hbase|127.0.0.1:50866:/hbase]{code}
However, there can be additional information appended after the zk quorum url
like user principal.
{code:java}
jdbc:phoenix:[127.0.0.1:56162:/hbase|127.0.0.1:50866:/hbase]:foo {code}
That information is not being parsed and dropped silently. We should pass that
information to underlying regular phoenix connection. The JDBC url parsing code
for HA connections is at
https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/jdbc/HighAvailabilityGroup.java#L198-L219
was:
HA connections expect the jdbc url string in the form:
{code:java}
jdbc:phoenix:[127.0.0.1:56162:/hbase|127.0.0.1:50866:/hbase]{code}
However, there can be additional information appended after the zk quorum url
like user principal. That information is not being parsed and dropped. We
should pass that information to underlying regular phoenix connection.
> HA client connections ignore additional jdbc params in the jdbc string
> ----------------------------------------------------------------------
>
> Key: PHOENIX-6995
> URL: https://issues.apache.org/jira/browse/PHOENIX-6995
> Project: Phoenix
> Issue Type: Improvement
> Affects Versions: 5.2.0, 5.1.3
> Reporter: Tanuj Khurana
> Assignee: Tanuj Khurana
> Priority: Major
>
> HA connections expect the jdbc url string in the form:
> {code:java}
> jdbc:phoenix:[127.0.0.1:56162:/hbase|127.0.0.1:50866:/hbase]{code}
> However, there can be additional information appended after the zk quorum url
> like user principal.
> {code:java}
> jdbc:phoenix:[127.0.0.1:56162:/hbase|127.0.0.1:50866:/hbase]:foo {code}
> That information is not being parsed and dropped silently. We should pass
> that information to underlying regular phoenix connection. The JDBC url
> parsing code for HA connections is at
> https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/jdbc/HighAvailabilityGroup.java#L198-L219
--
This message was sent by Atlassian Jira
(v8.20.10#820010)