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

GODRIVER-2997 Prevent cancelable context in txn commit loop #1415

Closed
wants to merge 0 commits into from

Conversation

prestonvasquez
Copy link
Collaborator

GODRIVER-2997

Summary

Use a background context when committing a transaction.

Background & Motivation

The Go Driver documentation for Session.WithTransaction notes that you should not use the method with a cancelable context:

Because this method must succeed to ensure that server-side resources are properly cleaned up, context deadlines and cancellations will not be respected during this call.

Therefore, we should not response user-defined contexts in the commit loop.

@blink1073
Copy link
Member

It looks like your base branch may have been master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants