-
Notifications
You must be signed in to change notification settings - Fork 387
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
When use Min Pool Size = 10
app hangs due to connection timeout
#1924
Comments
I have the same issue. It looks like it is related to where the app is running.
The same behavior is observed with MySQL 5.7, MySQL 8, Aurora DB, and MariaDB I also tried with MYSQL running directly on the operating system, on a docker image, AWS RDS, and I got the same behavior This issue is blocking the adoption of the .NET solution in our project |
Has this been resolved or a solution found? |
Sadly, no. We switched to PostgreSQL 🤷🏻♂️ |
@jjavierdguezas I am unable to reproduce the issue with your provided code. I used your zip file (with its dockerfile) and your provided compose file from this post, and the app executs I would suspect a user error here. Maybe the Since you moved to a different database server, I suspect you don't intend to follow-up on this issue. If you do, however, then please recreate your test images, ensure that it is indeed the docker service database server that the asp.net core app connects to (and not another database server that uses 3306 on the host machine) and recheck that you are still able to reproduce the issue. (Since you provided all files and are using docker and pinned the relevant versions, the issue should be reproducible for us, though it is not.) @mcuervoe Feel free to drop us a minimal reproducible example here, if you want us to investigate further. @rachael-ross Do you experience similar issues? |
Hi @lauxjpn, Thank you for your response. I appreciate your efforts in trying to reproduce the issue. Since we have moved to PostgreSQL, this issue is not a priority for me at the moment, so it might take some time for me to follow up. I will look into it again and try to provide an update soon. Thanks again for your help! |
Steps to reproduce
Use this project as example
MySql.Hang.Test.zip
I am using this
Dockerfile
:and this
docker-compose.yml
:The issue
On ubuntu 22.04 If I use a connection string like:
it works but if I include
Min Pool Size=10
it doesnt. A timeout error is thrown
Further technical details
MySQL version: mysql:8.0.35
Operating system: Ubuntu 22.04.2 LTS
Pomelo.EntityFrameworkCore.MySql version: 8.0.2
Microsoft.AspNetCore.App version: 8.0.5
Other details about my project setup:
I reduced the test scenario to an aspnet project (see attached .zip file) with a method that inserts data into the db when starting the app and a mysql all in a docker container
--
PS: I dont really know if this is related to Pomelo, mysql o what.. so any help is welcome. I test this exact docker compose on windows and it works I run the attached project from visual studio on windows and a mysql on docker desktop and it works. A coworker tested it on windows wsl and it works too. it seems related to linux/ubuntu
The text was updated successfully, but these errors were encountered: