You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/07/01 19:40:26 UTC

[jira] [Resolved] (HIVE-7307) Lack of synchronization for TxnHandler#getDbConn()

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

Ted Yu resolved HIVE-7307.
--------------------------

    Resolution: Later

> Lack of synchronization for TxnHandler#getDbConn()
> --------------------------------------------------
>
>                 Key: HIVE-7307
>                 URL: https://issues.apache.org/jira/browse/HIVE-7307
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> TxnHandler#getDbConn() accesses connPool without holding lock on TxnHandler.class
> {code}
>       Connection dbConn = connPool.getConnection();
>       dbConn.setAutoCommit(false);
> {code}
> null check should be performed on the return value, dbConn.



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