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 almost 4 years ago. Updated almost 4 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 #1

Updated by Andreas Kohlbecker almost 4 years ago

  • Description updated (diff)
Actions #2

Updated by Andreas Kohlbecker almost 4 years ago

  • Description updated (diff)
Actions #3

Updated by Andreas Kohlbecker almost 4 years ago

  • Related to bug #8132: phycobank cdm-server instance problems with db connections added
Actions #4

Updated by Andreas Kohlbecker almost 4 years ago

  • Related to bug #8170: javax.sql.DataSource.getConnection() implementation in WrappedCdmDataSource does not conform to the interface added
Actions #5

Updated by Andreas Kohlbecker almost 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50
Actions #6

Updated by Andreas Kohlbecker almost 4 years ago

  • Description updated (diff)
Actions #7

Updated by Andreas Kohlbecker almost 4 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100

We can close this ticket as solved, since fixing this issue did not cause any side effect problems

Actions

Also available in: Atom PDF