Skip to content

There is case that does not close pooled connections #821

Open
@mberta

Description

@mberta

MyBatis version

3.4.1

Database vendor and version

MySQL Oracle community edition version 5.7.13

Test case or example project

https://github.com/mberta/mybatis-test-mysql-aborted-connection

Steps to reproduce

Run the example project

Expected result

Actual result

The example project executes a dummy SELECT 1 statement against a mysql server and it generates an error message in mysql server log like this:

2016-11-03T11:30:44.894384Z 2558213 [Note] Aborted connection 2558213 to db: 'COPERNICO' user: 'copernicodba' host: '10.242.1.26' (Got an error reading communication packets)

Don't know if this is an issue or not, but it seems to me that mybatis shouldn't generate an 'aborted connection' as it does in the example project I've attached.
I should add that changing datasource type from POOLED to UNPOOLED makes the problem disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions