[ 
https://issues.apache.org/jira/browse/PHOENIX-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Prabhjyot Singh updated PHOENIX-3315:
-------------------------------------
    Description: 
Creating this JIRA from mail thread 
https://lists.apache.org/thread.html/5029f1f09c95a76b6e60a0f80e6f145dedf0b51cfdc08b964fb3b060@%3Cuser.phoenix.apache.org%3E


I'm using DriverManager.getConnection(url, properties) using following 
properties 

{code}
url -> "jdbc:phoenix:thin:url=http://prabhu-3.novalocal:8765;serialization 
=PROTOBUF"  
{code}
{code}
properties -> 
0 = {java.util.Hashtable$Entry@1491} "user" -> "phoenixuser" 
1 = {java.util.Hashtable$Entry@1492} "password" -> 
2 = {java.util.Hashtable$Entry@1493} "url" -> 
"jdbc:phoenix:thin:url=http://prabhu-3.novalocal:8765;serialization =PROTOBUF" 
3 = {java.util.Hashtable$Entry@1494} "hbase.client.retries.number" -> "4" 
4 = {java.util.Hashtable$Entry@1495} "driver" -> 
"org.apache.phoenix.jdbc.PhoenixDriver"  
{code}

With the above propert/setting/config it returns a connection to the URL 
specified, but it also modifies my properties object to following  

{code}
properties -> 
0 = {java.util.Hashtable$Entry@2361} "serialization" -> "PROTOBUF" 
1 = {java.util.Hashtable$Entry@2362} "user" -> "phoenixuser" 
2 = {java.util.Hashtable$Entry@2363} "password" -> 
*3 = {java.util.Hashtable$Entry@2364} "url" -> "http://prabhu-3.novalocal:8765 
<http://prabhu-3.novalocal:8765>"* 
4 = {java.util.Hashtable$Entry@2365} "hbase.client.retries.number" -> "4" 
5 = {java.util.Hashtable$Entry@2366} "driver" -> 
"org.apache.phoenix.jdbc.PhoenixDriver"   
{code}

The above only happens if I'm using *thin-client*. Is this the expected 
behaviour ?  

I plan to use this "properties" object after getting the connection for 
something else. 

Also, I'm using following in my maven dependency 
"org.apache.phoenix:phoenix-server-client:4.7.0-HBase-1.1" 

  was:
Creating this JIRA from mail thread 
https://lists.apache.org/thread.html/5029f1f09c95a76b6e60a0f80e6f145dedf0b51cfdc08b964fb3b060@%3Cuser.phoenix.apache.org%3E


I'm using DriverManager.getConnection(url, properties) using following 
properties 

url -> "jdbc:phoenix:thin:url=http://prabhu-3.novalocal:8765;serialization 
=PROTOBUF"  

properties -> 
0 = {java.util.Hashtable$Entry@1491} "user" -> "phoenixuser" 
1 = {java.util.Hashtable$Entry@1492} "password" -> 
2 = {java.util.Hashtable$Entry@1493} "url" -> 
"jdbc:phoenix:thin:url=http://prabhu-3.novalocal:8765;serialization =PROTOBUF" 
3 = {java.util.Hashtable$Entry@1494} "hbase.client.retries.number" -> "4" 
4 = {java.util.Hashtable$Entry@1495} "driver" -> 
"org.apache.phoenix.jdbc.PhoenixDriver"  

With the above propert/setting/config it returns a connection to the URL 
specified, but it also modifies my properties object to following  

properties -> 
0 = {java.util.Hashtable$Entry@2361} "serialization" -> "PROTOBUF" 
1 = {java.util.Hashtable$Entry@2362} "user" -> "phoenixuser" 
2 = {java.util.Hashtable$Entry@2363} "password" -> 
*3 = {java.util.Hashtable$Entry@2364} "url" -> "http://prabhu-3.novalocal:8765 
<http://prabhu-3.novalocal:8765>"* 
4 = {java.util.Hashtable$Entry@2365} "hbase.client.retries.number" -> "4" 
5 = {java.util.Hashtable$Entry@2366} "driver" -> 
"org.apache.phoenix.jdbc.PhoenixDriver"   

The above only happens if I'm using *thin-client*. Is this the expected 
behaviour ?  

I plan to use this "properties" object after getting the connection for 
something else. 

Also, I'm using following in my maven dependency 
"org.apache.phoenix:phoenix-server-client:4.7.0-HBase-1.1" 


> property object is being modified
> ---------------------------------
>
>                 Key: PHOENIX-3315
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3315
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Prabhjyot Singh
>
> Creating this JIRA from mail thread 
> https://lists.apache.org/thread.html/5029f1f09c95a76b6e60a0f80e6f145dedf0b51cfdc08b964fb3b060@%3Cuser.phoenix.apache.org%3E
> I'm using DriverManager.getConnection(url, properties) using following 
> properties 
> {code}
> url -> "jdbc:phoenix:thin:url=http://prabhu-3.novalocal:8765;serialization 
> =PROTOBUF"  
> {code}
> {code}
> properties -> 
> 0 = {java.util.Hashtable$Entry@1491} "user" -> "phoenixuser" 
> 1 = {java.util.Hashtable$Entry@1492} "password" -> 
> 2 = {java.util.Hashtable$Entry@1493} "url" -> 
> "jdbc:phoenix:thin:url=http://prabhu-3.novalocal:8765;serialization 
> =PROTOBUF" 
> 3 = {java.util.Hashtable$Entry@1494} "hbase.client.retries.number" -> "4" 
> 4 = {java.util.Hashtable$Entry@1495} "driver" -> 
> "org.apache.phoenix.jdbc.PhoenixDriver"  
> {code}
> With the above propert/setting/config it returns a connection to the URL 
> specified, but it also modifies my properties object to following  
> {code}
> properties -> 
> 0 = {java.util.Hashtable$Entry@2361} "serialization" -> "PROTOBUF" 
> 1 = {java.util.Hashtable$Entry@2362} "user" -> "phoenixuser" 
> 2 = {java.util.Hashtable$Entry@2363} "password" -> 
> *3 = {java.util.Hashtable$Entry@2364} "url" -> 
> "http://prabhu-3.novalocal:8765 <http://prabhu-3.novalocal:8765>"* 
> 4 = {java.util.Hashtable$Entry@2365} "hbase.client.retries.number" -> "4" 
> 5 = {java.util.Hashtable$Entry@2366} "driver" -> 
> "org.apache.phoenix.jdbc.PhoenixDriver"   
> {code}
> The above only happens if I'm using *thin-client*. Is this the expected 
> behaviour ?  
> I plan to use this "properties" object after getting the connection for 
> something else. 
> Also, I'm using following in my maven dependency 
> "org.apache.phoenix:phoenix-server-client:4.7.0-HBase-1.1" 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to