Skip to content
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

Old mysql connections dont get killed on application reload in Grails 4 #1253

Closed
luiszimmermann opened this issue Jun 6, 2019 · 0 comments
Closed
Assignees

Comments

@luiszimmermann
Copy link

Steps to Reproduce

  1. Create a New App
    • grails create-app testmysql
  2. Add mysql dependencies in build.gradle
    • runtime "mysql:mysql-connector-java:5.1.47"
  3. Create Schema and add connection to mysql in application.yml
dataSource:
            dbCreate: "update"
            #logSql: true
            url: "jdbc:mysql:https://localhost/testmysql?useSSL=false&allowPublicKeyRetrieval=true"
            driverClassName: "com.mysql.jdbc.Driver"
            username: "user"
            password: "pass"

Expected Behaviour

When a file gets changed and Grails 4 reload, the old connections should be gone.

Actual Behaviour

When a file gets changed and grails reaload, the old connections stay alive. With time, and many reloads, the mysql will reach the limit.

Environment Information

  • Operating System: Windows 10
  • Grails Version: Grails 4.0.0.RC2
  • JDK Version:
openjdk version "1.8.0_212"
OpenJDK Runtime Environment Corretto-8.212.04.2 (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM Corretto-8.212.04.2 (build 25.212-b04, mixed mode)
  • MySQL: 8.0.13
@luiszimmermann luiszimmermann changed the title Old mysql connections dont get killed on application reload Old mysql connections dont get killed on application reload in Grails 4 Jun 6, 2019
@jameskleeh jameskleeh self-assigned this Jun 19, 2019
@jameskleeh jameskleeh transferred this issue from grails/grails-core Jun 19, 2019
jhron pushed a commit to jhron/grails-data-mapping that referenced this issue May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants