commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DBCP-432) BasicDataSource createDataSource can return partially initialized DataSource
Date Wed, 04 Feb 2015 13:44:34 GMT

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

Phil Steitz resolved DBCP-432.
------------------------------
       Resolution: Fixed
    Fix Version/s: 2.1

First patch applied in r1657221.

> BasicDataSource createDataSource can return partially initialized DataSource
> ----------------------------------------------------------------------------
>
>                 Key: DBCP-432
>                 URL: https://issues.apache.org/jira/browse/DBCP-432
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Phil Steitz
>             Fix For: 2.1
>
>         Attachments: DBCP-432-AtomicReference.patch, DBCP-432.patch
>
>
> The BasicDataSource instance variable, dataSource, is DCL-controlled in createDataSource;
but within the sync block it is set directly and then subsequently initialized.  Threads that
request connections, or access createDataSource directly while initialization is in progress
will get partially initialized dataSources.  In particular, logWriters may be null and initial
pool capacity may not be provisioned (if initialSize > 0).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message