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

ASF GitHub Bot commented on PHOENIX-7243:
-----------------------------------------

palashc commented on code in PR #1839:
URL: https://github.com/apache/phoenix/pull/1839#discussion_r1511993390


##########
phoenix-core-client/src/main/java/org/apache/phoenix/jdbc/ConnectionInfo.java:
##########
@@ -36,6 +36,7 @@
 import org.apache.phoenix.query.HBaseFactoryProvider;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.PhoenixRuntime;
+import org.apache.phoenix.util.QueryUtil;

Review Comment:
   Needed here - 
https://github.com/apache/phoenix/pull/1839/files#diff-1bb66a6bc989c1d63acbf10ef6f3f05dd9d86b6ec065f437d0b9332666b1f688R391





> Add isServerConnection property to ConnectionInfo class.
> --------------------------------------------------------
>
>                 Key: PHOENIX-7243
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-7243
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Rushabh Shah
>            Assignee: Palash Chauhan
>            Priority: Major
>
> In PhoenixDriver, we have a cache of ConnectionQueryServices which is keyed 
> by ConnectionInfo object. Refer 
> [here|https://github.com/apache/phoenix/blob/master/phoenix-core-client/src/main/java/org/apache/phoenix/jdbc/PhoenixDriver.java#L258-L270]
>  for more details.
> Lets say if we want to create a server  connection (with property 
> IS_SERVER_CONNECTION set to true) and we already have a _non server_ 
> connection present in the cache (with the same user, principal, keytab, 
> haGroup), it will return the non server connection.
> We need to add isServerConnection property to 
> [ConnectionInfo|https://github.com/apache/phoenix/blob/master/phoenix-core-client/src/main/java/org/apache/phoenix/jdbc/ConnectionInfo.java#L317-L334]
>  class to differentiate between server and non server connection.



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

Reply via email to