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

oracledb: commit was a no-op causing race conditions #3668

Merged
merged 3 commits into from Feb 16, 2020

Conversation

jakecoffman
Copy link
Contributor

fix #3612

The underlying issue was that query *always* committed, even during a transaction. The previous fix was to just disable commitAsync in a transaction but then that also disabled explicit commit calls. Instead, this fix disables query's commits during transactions so that explicit commits still work.
@kibertoad
Copy link
Collaborator

@akaraivanov @jakecoffman I assume this still needs new unit tests with Sinon mocks?

@kibertoad
Copy link
Collaborator

refs #3225

@jakecoffman
Copy link
Contributor Author

I'm trying to see if the integration tests I enabled will fail in travis so I am running them repeatedly. Would that be enough to say that this fix is tested? It would probably be more meaningful than a mocked out db call.

@kibertoad
Copy link
Collaborator

Yeah, fair :)

@kibertoad
Copy link
Collaborator

Seem to be green, so at least not worse than before. Let's land this and observe oracle behaviour in master over longer period of time.

@kibertoad kibertoad merged commit d50d006 into knex:master Feb 16, 2020
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.

oracledb: commit is a no-op
2 participants