Skip to content

Database connections are not closed when a new datasource is created #135

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

Closed
njvrzm opened this issue Sep 30, 2024 · 0 comments · Fixed by #136
Closed

Database connections are not closed when a new datasource is created #135

njvrzm opened this issue Sep 30, 2024 · 0 comments · Fixed by #136
Assignees
Labels
bug Something isn't working effort/small

Comments

@njvrzm
Copy link
Contributor

njvrzm commented Sep 30, 2024

grafana-plugin-sdk-go supports a Dispose() method to be called when a new Instance is to be created. Sqlds does not currently support this. This leaks database connections in some circumstances.

SQLDatasource should support the InstanceDisposer interface and have its Connector close its open database connections when Dispose() is called. I'm working on a PR for this now.

@njvrzm njvrzm added the bug Something isn't working label Sep 30, 2024
@njvrzm njvrzm self-assigned this Sep 30, 2024
@iwysiu iwysiu moved this from Incoming to In Progress in AWS Datasources Sep 30, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in AWS Datasources Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working effort/small
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant