-
Notifications
You must be signed in to change notification settings - Fork 893
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
GODRIVER-1852 Add commitTransaction error check for timeout #569
GODRIVER-1852 Add commitTransaction error check for timeout #569
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for investigating this! I have a question about the UnknownTransactionCommitResult
error label which we discussed offline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brilliant work investigating and testing this! I just have a suggestion about the timeout check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes LGTM. Just one additional note about leaving a comment to clarify what the code is doing for future readers. Additionally, can you rebase this branch on master
and force-push? I see some test failures related to connection pooling and Atlas Data Lake, but these should be fixed by some of our recent commits. Once that's addressed, I can come back and approve.
GODRIVER-1852
Adds a check for network timeout after executing the operation within a commitTransaction. Avoids incorrectly updating transaction state to "Committed" in the case of a timeout.
Adds test to make sure a transaction can still be aborted after a timed-out commitTransaction.