hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-7307) Lack of synchronization for TxnHandler#getDbConn()
Date Fri, 27 Jun 2014 18:12:24 GMT

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

Ted Yu updated HIVE-7307:
-------------------------

    Description: 
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.

  was:TxnHandler#getDbConn() accesses connPool without holding lock on TxnHandler.class


> 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)

Mime
View raw message