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

MySQL Metricbeat module do not close db connection #9415

Closed
sayden opened this issue Dec 6, 2018 · 1 comment
Closed

MySQL Metricbeat module do not close db connection #9415

sayden opened this issue Dec 6, 2018 · 1 comment
Labels
bug good first issue Indicates a good issue for first-time contributors Metricbeat Metricbeat

Comments

@sayden
Copy link
Contributor

sayden commented Dec 6, 2018

The MySQL metricbeat module opens a connection to the database here https://github.com/elastic/beats/blob/master/metricbeat/module/mysql/mysql.go#L103

It seems that the Close() call is not being done as needed by the Golang sql driver https://golang.org/pkg/database/sql/driver/#Conn

@sayden sayden added bug Metricbeat Metricbeat good first issue Indicates a good issue for first-time contributors labels Dec 6, 2018
@sayden sayden changed the title MySQL Metricbeat module do to not close db connection MySQL Metricbeat module do not close db connection Dec 6, 2018
@andrewkroh
Copy link
Member

Fixed by #10355.

jsoriano pushed a commit to jsoriano/beats that referenced this issue Jan 29, 2019
Fixes elastic#9415 by closing the db handle.

(cherry picked from commit f06cf46)
jsoriano added a commit that referenced this issue Jan 30, 2019
Fixes #9415 by closing the db handle.

(cherry picked from commit f06cf46)

Co-authored-by: Jaime A <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Indicates a good issue for first-time contributors Metricbeat Metricbeat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants