Project

General

Profile

Actions

bug #8171

closed

javax.sql.DataSource.getConnection() implementation in WrappedCdmDataSource fails to cache the connection which and leaves it unclosed

Added by Andreas Kohlbecker about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
critical
Found in Version:
Tags:

Description

When the existing cached connection in the WrappedCdmDataSource is null a new connection will be created but is not stored in the connection field. When closeOpenConnections() is being called the created connection is not closed

This issue is strongly related to #8170 but needs to be handled much earlier in order to void connections which are not closed after being used. See #8132 for symptoms.

the same account for getConnection(String username, String password)

It would be better to fix #8170, but this might require more time.

Question: Why closeOpenConnections(). The WrappedCdmDataSource always only handles only one connection and should actually not deal with more than one connection at the same time.


Related issues

Related to EDIT - bug #8132: phycobank cdm-server instance problems with db connections WorksformeWolf-Henning Kusber

Actions
Related to EDIT - bug #8170: javax.sql.DataSource.getConnection() implementation in WrappedCdmDataSource does not conform to the interface NewAndreas Müller

Actions
Actions

Also available in: Atom PDF