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

#147: Refactor to open and close connection for each query #237

Closed
wants to merge 1 commit into from
Closed

Conversation

mrjameshamilton
Copy link

Fix #147 by opening and closing connections for each query.

@jakelandis
Copy link
Contributor

@mrjameshamilton - thanks for the PR and I agree with the changes here.

It is worth noting that if some workflows may require highly frequent schedules (e.g. every 1 second) with large numbers of connections which may cause resource issues w/r/t to number of sockets in TIME_WAIT status. However, I think that is the exception not the rule, and the fix for that exception case is connection pooling, not the current behavior.

I did some light testing against mysql shows the connections correctly being open/closed as advertised.

LGTM, I will get this merged and released.

@elasticsearch-bot
Copy link

Jake Landis merged this into the following branches!

Branch Commits
master 733abd9

@jakelandis
Copy link
Contributor

This has been released:

bin/logstash-plugin install --version "4.3.0" logstash-input-jdbc

Thanks again @mrjameshamilton !

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

Successfully merging this pull request may close these issues.

None yet

3 participants