Skip to content

Conversation

@ShaneHarvey
Copy link
Member

Resolves the following related tickets:

  • PYTHON-2635 Test that session is unpinned when executing a non-transaction operation
  • PYTHON-2654 Add unpinning transaction test for read operations
  • PYTHON-2657 Unpin sessions after all abortTransaction attempts

Note we already unpin on any retryable or transient errors so the only thing left to do in pymongo is to unpin before returning from the abort_transaction() method.

This change also introduces unified/ spec tests for transactions.

@ShaneHarvey
Copy link
Member Author

Note the one test failure is unrelated to this change and is already a known (rare) issue that appears to be back from the grave: https://jira.mongodb.org/browse/PYTHON-2279

TestTransactionsConvenientAPI.TEST_PATH).create_tests()


UNIFIED_TEST_PATH = os.path.join(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cruft?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@ShaneHarvey ShaneHarvey merged commit 61c6876 into mongodb:master Apr 28, 2021
@ShaneHarvey ShaneHarvey deleted the PYTHON-2635 branch April 28, 2021 19:38
ShaneHarvey added a commit that referenced this pull request Apr 28, 2021
Add unified test runner for transactions.

(cherry picked from commit 61c6876)
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.

2 participants