Commit Graph

2051 Commits

Author SHA1 Message Date
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
Prashant Mital
0b8643d144
SPEC 1153: Adding readConcern support to aggregation with $out (#400) 2019-02-20 16:21:39 -08:00
Shane Harvey
6850f04418
PYTHON-1751 Resync transaction spec tests for bulk write error reporting change (#402) 2019-02-20 10:43:19 -08:00
Shane Harvey
45aa656027
PYTHON-1730 Use w:majority when retrying commitTransaction (#393) 2019-02-08 14:39:54 -08:00
Shane Harvey
cd5600018e PYTHON-1739 Skip failing change stream test on sharded clusters (#397)
(cherry picked from commit 9dcd828a0f)
2019-02-07 16:02:48 -08:00
Shane Harvey
7d2095dc45 PYTHON-1719 Stop testing getpreverror on MongoDB 4.1+ 2019-02-01 11:05:26 -08:00
Shane Harvey
9aa5bb791a PYTHON-1734 Skip failing index tests on MongoDB 4.1 2019-02-01 11:05:11 -08:00
Prashant Mital
3242ebba9f
PYTHON-1722 Fix spec-test failures for the compression URI options (#391) 2019-01-23 10:23:03 -08:00
Prashant Mital
4cdd3450ac
PYTHON-1670: Implement Unified URI Options (#386) 2019-01-17 10:02:37 -08:00
Shane Harvey
41b42344de PYTHON-1701 Avoid false positives in unpinning prose test
Wait until both mongoses are discovered, increase localThresholdMS,
and increase iteration count.
2018-12-12 16:22:35 -08:00
Shane Harvey
ecc852c322 PYTHON-1673 Mongos pinning for sharded transactions
In a sharded transaction, a session is pinned to the mongos server
selected for the initial command. All subsequent commands in the same
transaction are routed to the pinned mongos server.
2018-12-06 15:28:58 -08:00
Shane Harvey
1d8c73954c PYTHON-1691 Fix transaction test runner to read the latest data from the primary 2018-11-30 13:30:17 -08:00
Shane Harvey
c200c2cd0e
PYTHON-1658 Test that transaction reads ignore db/collection readConcern (#384)
Fix: properly skip tests that include 'skipReason'.
Revendor transaction spec tests at commit 367842f1ee4b80f75664a05c6b9d5b2498cf856d
2018-11-14 11:47:53 -08:00
Prashant Mital
b1fc024143
PYTHON-1683 Remove _partition and _rpartition from uri_parser module (#383) 2018-11-14 10:52:31 -08:00
Shane Harvey
e7114087c7 PYTHON-1682 UTF-8 encode unicode error messages on Python 2 2018-11-13 17:43:57 -08:00
Shane Harvey
d43ca118f9 PYTHON-1654 Ignore $clusterTime in test_command assertion 2018-10-09 15:55:10 -07:00
Pascal Corpet
9dae3d06a2 Fix equality comparison of WriteConcern objects. (#378) 2018-10-09 15:05:47 -07:00
Shane Harvey
6fe00109c1 PYTHON-1650 Always increment txnNumber before starting a retryable write 2018-10-08 11:42:02 -07:00
Prashant Mital
bc26c0db69
PYTHON-1577 Allow applications to register a custom server selector (#371)
PYTHON-1577 Allow applications to register a custom server selector
2018-08-30 17:33:03 -05:00
Prashant Mital
58851e1221
PYTHON-1619 Implement ObjectID Specification (#373)
PYTHON-1619 Implement ObjectID Specification
2018-08-29 12:24:28 -05:00
Prashant Mital
00b672653e
FIX: explicitly state read and write concern in causal consistency examples (#374)
PYTHON-1623 Causal Consistency Examples for the Manual
2018-08-28 15:54:21 -05:00
Bernie Hackett
554195e33b PYTHON-1625 - Fix perf tests 2018-08-13 11:48:20 -07:00
Shane Harvey
5bc0c7080f
PYTHON-1624 Fix failing $out test on MongoDB latest (#369) 2018-08-10 15:26:04 -07:00
Prashant Mital
9aa7adab0f
PYTHON-1621 Modify change stream output example for manual (#370) 2018-08-10 15:21:54 -07:00
Prashant Mital
88ab7ed4ea
DOC: add manual example for causal consistency (#368)
* DOC: add manual example for causal consistency
2018-08-10 15:11:34 -07:00
Bernie Hackett
a22719853e PYTHON-1613 Invalidate cache on changed salt or iterations 2018-07-14 12:38:53 -07:00
Shane Harvey
7ca04999e9
PYTHON-1603 Truncate large datetimes properly (#362) 2018-07-09 16:28:48 -07:00
Bernie Hackett
466fdde12a PYTHON-1609 - Fix authing the same user more than once 2018-07-09 14:59:53 -07:00
Bernie Hackett
cbc81ee793 PYTHON-1536 - PyMongo no longer supports PyPy3 < 3.5 2018-07-03 12:44:40 -07:00
Bernie Hackett
a24d3f6e23 PYTHON-1606 - Update Ubuntu 12 and Debian 7 testing 2018-07-03 12:44:40 -07:00
Bernie Hackett
356eed66f5 PYTHON-1607 - Stop testing eval and SystemJS with MongoDB 4.1+ 2018-07-03 12:44:40 -07:00
Bernie Hackett
587e448b69 PYTHON-1604 - Stop testing reindex with mongos and MongoDB 4.1+ 2018-07-03 12:44:30 -07:00
Bernie Hackett
749c1a2f0b PYTHON-1467 - PyMongo no longer supports Python 2.6 2018-07-02 15:15:43 -07:00
Prashant Mital
f82706c870 PYTHON-1597 Don't run Change Stream tests on MMAPv1 (#356) 2018-06-26 13:01:20 -04:00
Shane Harvey
4f3b6467ab PYTHON-1598 Fix transaction write concern inheritance 2018-06-26 12:07:12 -04:00
Shane Harvey
98e77ba1d2 PYTHON-1483 Prohibit unack'ed writes with explicit sessions 2018-06-25 13:55:50 -05:00
Bernie Hackett
8573099c4b Move time consuming utf8 tests out of the main suite 2018-06-24 20:45:59 -07:00
stephan-hof
9b632c776c Refactor the the assert into a separate function. 2018-06-24 19:59:16 -07:00
stephan-hof
e113a338e9 Improve the check for legal utf8 in the bson module.
Now python and bson have the same understanding of legal utf8.
2018-06-24 19:59:16 -07:00
Shane Harvey
3b9e99015f PYTHON-1508 Only send readConcern on first command in a transaction 2018-06-24 11:39:23 -04:00
Shane Harvey
05c7c65470 PYTHON-1329 OP_MSG with unacknowledged writes
Replace OP_INSERT/OP_UPDATE/OP_DELETE usage with OP_MSG with moreToCome
flag when the server is 3.6 or greater.
Unack'ed OP_MSG supports bypass_document_validation.
getLastError updatedExisting is always false on mongos after an OP_MSG
unack'ed update.
2018-06-23 11:46:50 -04:00
Bernie Hackett
4d786fd0cd PYTHON-1329 - OP_MSG bulk writes 2018-06-21 16:03:20 -07:00
Shane Harvey
ea8cb6c209 PYTHON-1329 Send/receive commands as OP_MSG
Don't use $query with OP_MSG.
Support compression with OP_MSG.
2018-06-21 15:46:48 -07:00
Shane Harvey
994cf80c7c PYTHON-1545 Resume more getMore errors for ChangeStreams 2018-06-21 12:41:30 -07:00
Prashant Mital
96291c88b0
PYTHON-1565 Add helpers and options for Change Streams Follow-on Work (#355)
PYTHON-1565 Add helpers and options for Change Streams Follow-on Work (#355)

Add MongoClient.watch() and Database.watch().
Add start_at_operation_time to all watch() helpers.
2018-06-21 12:22:59 -07:00
Bernie Hackett
388339e187 PYTHON-1591 - Deprecate Collection.parallel_scan 2018-06-21 12:03:42 -07:00
Bernie Hackett
709b28467f PYTHON-1586 - Deprecate database_names and collection_names 2018-06-18 10:52:11 -07:00
Bernie Hackett
e6b0f3847d PYTHON-1581 - Deprecate Collection/Cursor count 2018-06-18 10:50:26 -07:00
Shane Harvey
9d8024d9ea PYTHON-1590 Avoid thread limit in tests 2018-06-15 13:17:37 -07:00
Shane Harvey
b5e9007af0 PYTHON-1508 PYTHON-1589 Expand where unknown commit label is raised
Remove has_label api.
Bump required server version for transactions.
2018-06-15 11:29:11 -07:00