Commit Graph

4191 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
Shane Harvey
05565783d9 PYTHON-1759 Find/getMore command failures reset servers's SDAM state (#406) 2019-02-27 13:25:43 -08:00
Prashant Mital
0ca7ccd52c
SPEC 1153: Document change in aggregate command behavior (#404) 2019-02-21 09:38:32 -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
Jason R. Coombs
341b2b5964 Document find_one_and_update return value on no match. (#361)
Trim excess whitespace.
2018-10-30 11:40:14 -07:00
Dmitry Volodin
384796b3fa PYTHON-1663 LIFO connection pool policy (#380) 2018-10-26 10:16:30 -07:00
Tony Narlock
22f83c5a55 Remove unused import (#379) 2018-10-25 10:44:38 -07: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
d571ac022c PYTHON-1647 Fix memory leak in OP_MSG C extensions 2018-10-09 13:24:13 -07:00
Shane Harvey
6fe00109c1 PYTHON-1650 Always increment txnNumber before starting a retryable write 2018-10-08 11:42:02 -07:00
Bernie Hackett
dea14beb86 PYTHON-1633 - Test Python 3.7 on Windows 2018-09-24 16:08:03 -07:00
Shane Harvey
f064cd449e PYTHON-1645 Only test zSeries on RHEL 7.2 2018-09-24 11:53:42 -07:00
Petr Messner
7f1939ebcb PYTHON-1642 - Replace count() with count_documents({}) in docs (#376) 2018-09-13 16:34:35 -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
Felipe Rodrigues
6afcf14f4f Add class docstring to MongoClient (#372) 2018-08-24 10:09:17 -07: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
Shrey Batra
98ce687567 Add GEOSPHERE to geospatial docs (#364)
Add warning for deprecated geoNear command.
2018-08-10 12:42:49 -07:00
Shane Harvey
2a306ab526
Remove Travis workarounds (#366) 2018-08-09 14:30:38 -07:00
Didi Bar-Zev
ff958b7d67 PYTHON-1617 Fix database name check in index cache (#363) 2018-07-25 10:18:25 -07:00
A. Jesse Jiryu Davis
fdcf61cccb PYTHON-1615 Update Cursor.hint doc 2018-07-22 22:42:47 -04:00
Bernie Hackett
eabc8d90ae Add 3.7.1 changelog entry 2018-07-17 19:48:47 -07:00
Bernie Hackett
a22719853e PYTHON-1613 Invalidate cache on changed salt or iterations 2018-07-14 12:38:53 -07:00
Bernie Hackett
47b0d8ebfd PYTHON-1392 PYTHON-1535 - Fix EVG path issues 2018-07-12 20:40:32 -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
f51723de52 PYTHON-1541 - Use setuptools python_requires
To enforce minimum Python requirements.
2018-07-03 12:44:40 -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
Prayash Mohapatra
a537a711d1 Update README.rst - Support for MongoDB 4.0 (#359) 2018-07-03 09:45:13 -07:00