[
https://issues.apache.org/jira/browse/HIVE-7307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14049066#comment-14049066
]
Alan Gates commented on HIVE-7307:
----------------------------------
[~ted_yu], not sure why we should be synchronizing calls to connPool. Are you
worried that they are not thread safe?
> 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)