You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2014/08/09 00:00:12 UTC
[jira] [Resolved] (PHOENIX-1143) Prevent race condition between
creating phoenix connection and closing phoenix driver/connection query
services.
[ https://issues.apache.org/jira/browse/PHOENIX-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Taylor resolved PHOENIX-1143.
-----------------------------------
Resolution: Fixed
Thanks for the patch, [~samarthjain]. I committed it to all branches.
> 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, PHOENIX-1143-3.0_v4.patch, PHOENIX-1143_v3.patch, PHOENIX-1143_v4.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)