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

postgres: fix tx leak on serialization failure #1363

Closed

Conversation

vito
Copy link
Contributor

@vito vito commented Nov 27, 2018

fixes #1355 which was caused by #1342

also related: #1356 and #1357

this bug was actually the only reason the concurrency tests passed!
instead, the tests are now updated to eventually be serializable after
10 attempts, and they assert that it took 10 attempts to work,
effectively testing the retry logic.

this is all running on the theory that, there shouldn't be any cases
that are truly never serializable - any and all of those are bugs to be
fixed. the tests forced an impossible situation, which is not realistic
when compared to client-initiated API calls.
@vito
Copy link
Contributor Author

vito commented Nov 28, 2018

Hmm, the concurrency tests failed on Travis; looks like the other storage providers would also need retry logic baked in too.

@kepkin
Copy link

kepkin commented Dec 11, 2018

Please check my PR #1370 for different solution as serializable isolation level is overkill for an application like dex.

@vito
Copy link
Contributor Author

vito commented Feb 21, 2019

closing this in favor of #1370 - we're tidying up our own branches in prep for submitting PRs and it doesn't seem worth maintaining this one

@vito vito closed this Feb 21, 2019
@jwntrs jwntrs deleted the pr/fix-serialization-connection-leak branch February 27, 2019 20:20
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.

storage/sql/conformance: concurrent access tests fail for the wrong reason
2 participants