-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Aborted connection warning in DB #2
Labels
bug
Something isn't working
Comments
Looks to be related:
|
Was caused by async code problems in tests and leaving DB connections open. Something similar to ladjs/supertest#520 & https://www.dariacaraway.com/blog/jest-async-flakes Fixed in #3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Describe the bug:
When running Jest tests with mysql2@3.2.0 library connecting to MariaDB 10.11.2-MariaDB-1:10.11.2+maria~ubu2204 container, the following warning messages are logged in the Mariadb container logs:
To Reproduce:
54203bf
(also happens earlier)docker compose up
)npx jest
, they mostly pass fine.Expected behavior:
There should be no warning messages in the Mariadb container logs.
Environment:
Node.js version: v18.15.0
node-mysql2 package version: 3.2.0
Jest version: 29.5.0
DB: MariaDB version 10.11.2-MariaDB-1:10.11.2+maria~ubu2204 in docker / mysql:8 in docker (version 8.0.32-1.el8)
Operating system: macOS 11.6.8
Additional context:
The warning messages suggest that there might be an issue with the network communication between the node.js application and the MariaDB container, or there might be some issues with the MariaDB server configuration. Same aborted connections happen when using
mysql
docker image, but that doesn't log them; still shows viamysql> SHOW GLOBAL STATUS;
. I checked Wireshark and mysql packets seem ok. The SQL queries run fine.Full log
mariadb-docker.log
The text was updated successfully, but these errors were encountered: