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

Samarth Jain updated PHOENIX-1172:
----------------------------------

    Attachment: PHOENIX-1172.patch

The patch includes fixes for:

1) The initializationException wasn't getting set correctly when the exception 
wasn't a SQLException. This was causing requests to use connection query 
services instance even though its initialization  failed.

2) The above issue was manifested when severe lock contention was noticed 
between close() and addConnection() methods. While fixing 1) essentially takes 
care of the contention, it would be better to use a different lock other than 
"this" for guarding connectionCount.  

[~jamestaylor] - please review. The patch works for all branches. Thanks!

> Prevent lock contention in ConnectionQueryServicesImpl. Fix exception 
> handling. 
> --------------------------------------------------------------------------------
>
>                 Key: PHOENIX-1172
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1172
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 5.0.0, 3.1, 4.1
>            Reporter: Samarth Jain
>            Assignee: Samarth Jain
>             Fix For: 5.0.0, 3.1, 4.1
>
>         Attachments: PHOENIX-1172.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to