Repository navigation
Conversation
Contributor
|
Thanks for this PR @contra , I will take care of cleaning up tests |
Contributor
Author
|
@sushantdhiman Thanks! Let me know if you need anything else. |
Contributor
|
Somehow cant push to contra/master forcefully, will reopen another PR |
3 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request check-list
npm run testornpm run test-DIALECTpass with this change (including linting)?Description of change
There are a few failing tests I think should be removed, but I'm opening this for discussion. The test that ensures the connection release is called only once seems wrong to me, if you're going to be retrying for 60 seconds (or longer!) shouldn't you yield the connection between tries? Otherwise the pool will get completely hosed with connections that are doing nothing but waiting for the next retry. That test was added to close a ticket that would also be solved with this change.
Anyways, let me know what you think RE tests. We're using this already on test servers and it seems to work great - I can restart the db or shut it off for a while and when I turn it back on the queries resolve just fine. This makes zero downtime multi-az failovers work 100%.