Skip to content

Cyclic attempt to open new connection with Oracle.ManagedDataAccess.Core creates new threads #277

Closed
@WagnerPhillip

Description

@WagnerPhillip

Hello,

we have a code section, where we try to open a connection to oracle database cyclical. Once a connection was established, we use this one until the main application is closed an when it failes, we will try again to open a connection, until the database can be reached.

With Oracle.ManagedDataAccess.Core version 3.21.70 or lower this was not a problem.
But since version 3.21.80 everytime our code is trying to open a connection, there are new threads being created in the background that stay alive as long as the main application is running.
In one case we had it running for so long, that our application had over 1000 threads running!

Why does this happen? Are we doing something wrong or is this a bug in the newest versions?
Because as mentioned above it only happens in 3.21.80 or 3.21.90 version of the Oracle.ManagedDataAccess.Core package, the lower versions are only creating threads once when the connection cannot be established, but not every single time.

Attached you will find a simplified sample project, where hopefully you will be able to reproduce it.
Any information or help will be much appreciated :)

OracleDbConnectionThreadLeakSample.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions