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

Early check connection blacklisting #277

Closed

Conversation

arizz96
Copy link

@arizz96 arizz96 commented Dec 28, 2020

With these changes I want to fix the problem described in #258 where lot of connection attempts are performed when primary/replica DBs configuration isn't usable.

I found that _makara_connection method tries to establish connection everytime it's called when @connection is nil, also when blacklisted. I added an early check on blacklisting status.

I also added some unit tests for this method.

@arizz96 arizz96 marked this pull request as ready for review January 4, 2021 09:27
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.

1 participant