phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samarth Jain (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-1143) Prevent race condition between creating phoenix connection and closing phoenix driver/connection query services.
Date Wed, 06 Aug 2014 01:08:15 GMT

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

Samarth Jain updated PHOENIX-1143:
----------------------------------

    Description: 
The race condition manifests when the following NPE is thrown: 
{code}
java.lang.NullPointerException
Thrown-StackTrace: at org.apache.phoenix.jdbc.PhoenixConnection.<init>(PhoenixConnection.java:178)
at org.apache.phoenix.query.ConnectionQueryServicesImpl.connect(ConnectionQueryServicesImpl.java:513)
at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.connect(PhoenixEmbeddedDriver.java:116)

{code}

  was:
The race condition manifests itself by throwing a NPE: 
{code}
java.lang.NullPointerException
Thrown-StackTrace: at org.apache.phoenix.jdbc.PhoenixConnection.<init>(PhoenixConnection.java:178)
at org.apache.phoenix.query.ConnectionQueryServicesImpl.connect(ConnectionQueryServicesImpl.java:513)
at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.connect(PhoenixEmbeddedDriver.java:116)

{code}


> Prevent race condition between creating phoenix connection and closing phoenix driver/connection
query services.
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-1143
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1143
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Samarth Jain
>            Assignee: Samarth Jain
>             Fix For: 5.0.0, 3.1, 4.1
>
>         Attachments: PHOENIX-1143-3.0.patch
>
>
> The race condition manifests when the following NPE is thrown: 
> {code}
> java.lang.NullPointerException
> Thrown-StackTrace: at org.apache.phoenix.jdbc.PhoenixConnection.<init>(PhoenixConnection.java:178)
> at org.apache.phoenix.query.ConnectionQueryServicesImpl.connect(ConnectionQueryServicesImpl.java:513)
> at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.connect(PhoenixEmbeddedDriver.java:116)
> {code}



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

Mime
View raw message