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

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

stoty commented on PR #1560:
URL: https://github.com/apache/phoenix/pull/1560#issuecomment-1426116389

   Thank you @gjacoby126 .
   
   My explanation above has a mistake, there is one connection per 
ConnectionType, not one per  RegionCoprocessorEnvironment.
   
   The API for ServerUtil.ConnectionFactory suggests that theConnection cache 
is per RegionCoprocessorEnvironment , but that's not true. The cache is 
actually a static object, so the the Connection objects are per classloader 
singletons, just as the CQSI objects.
   
   I was worried that we're creating hundreds of connections with 
ServerUtil.ConnectionFactory, but that factrory is doing the right thing.




> Reusing Connection instance object instead of creating everytime in 
> PhoenixAccessController class. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-6395
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6395
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 5.2.0, 5.1.3
>            Reporter: vikas meka
>            Assignee: Istvan Toth
>            Priority: Major
>             Fix For: 5.2.1
>
>




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

Reply via email to