8000 Aborted DB connection after JUnit Tests completed · Issue #158 · swaldman/c3p0 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Aborted DB connection after JUnit Tests completed #158
Open
@friederici

Description

@friederici

Hello,

I do have an issue with the DB connections fro 50D9 m the c3p0 pool always get aborted after my JUnit tests have completed.
It appears that the "Resource Destroyer in BasicResourcePool.close()" thread cannot finish its cleanup before the JVM exits.

I prepared a simple project with a single JUnit test to demonstrate the problem: https://github.com/friederici/c3p0_close_poc

Up to c3p0 version 0.9.0.4, there was no seperate cleanup thread and the connections get closed cleanly. Since c3p0 version 0.9.1 (up to the newest version 0.9.5.5) connections do not get closed. MariaDB logs then something like:

Aborted connection 89 to db: 'exampledb' user: 'exampleuser' host: 'localhost' (Got an error reading communication packets)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0