Shane Harvey
a886922157
PYTHON-1684 Support sharded transactions recovery token ( #406 )
...
Transient errors inside transaction unpins the session.
Add brief docs about sharded transactions and add 3.9 changelog.
Tests changes:
Add spec tests for sharded transaction recoveryToken.
Speed up txn tests by reducing SDAM waiting time after a network error.
Remove outdated test workaround for killAllSessions.
2019-02-27 13:28:06 -08:00
Shane Harvey
45aa656027
PYTHON-1730 Use w:majority when retrying commitTransaction ( #393 )
2019-02-08 14:39:54 -08:00
Shane Harvey
ca6a34f51d
PYTHON-1508 SPEC-1097 Resync transaction tests
...
Database.command without a read_preference defaults to the
transaction's or Primary if the session is not in a transaction
Add runCommand transaction tests.
Update count tests.
2018-06-01 16:29:11 -07:00
Shane Harvey
cac0d5548f
PYTHON-1508 Remove autoStartTransaction and resync tests
...
Also use the test file's database name and collection name.
2018-05-22 13:29:41 -07:00
Shane Harvey
7aeec7b56b
PYTHON-1508 Remove stmtId from transaction commands
...
The statement identifier is no longer required by the server.
2018-04-25 16:04:13 -07:00
A. Jesse Jiryu Davis
95d8f783c0
Resync transactions spec tests
2018-04-16 09:57:45 -04:00
Shane Harvey
ab73a7a164
Re-sync transactions tests
2018-04-16 09:57:45 -04:00
Shane Harvey
0967c7ed6c
Add startTransaction:true to the start of all transactions
...
Also add autocommit:false to all commands in transactions.
2018-04-16 09:57:45 -04:00
Shane Harvey
6eb0e13393
Support causal consistency with transactions
2018-04-16 09:57:45 -04:00
Shane Harvey
712637ac8b
Refactor transaction attributes into _Transaction class
...
Re-sync transaction spec tests.
2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
3177616f53
Re-sync spec tests from #e9791101
2018-04-16 09:57:45 -04:00
A. Jesse Jiryu Davis
17d94ea8af
fix bulkWrite transaction test, import transactional write tests
2018-04-16 09:57:45 -04:00