-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-2956 Drivers should check out an implicit session only after checking out a connection #876
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
Conversation
…transaction_id works with empty objects
b5d0bfe
to
c5a8a17
Compare
177fe57
to
060247b
Compare
Looks like this test is failing on pypy 3.8:
Could be related to delayed garbage collection in pypy? Does it also fail locally for you? |
I think we should only do the manual |
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.
Still waiting for an explanation for why changing from $listLocalSessions to client.admin.aggregate, [[{"$currentOp": {}}]]
fixes the test failure on pypy. Is there a bug in our CommandCursor implementation? Does $listLocalSessions require multiple batches whereas $currentOp is a single batch? A multi-batch cursor would cause this test to almost always create one extra session since the session needs to be kept alive until all batches complete. In this case I believe we should update the test to impose a limit=1 for all find/aggregate cursors.
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
…hecking out a connection (mongodb#876)
…hecking out a connection (mongodb#876)
No description provided.