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
45aa656027
PYTHON-1730 Use w:majority when retrying commitTransaction ( #393 )
2019-02-08 14:39:54 -08:00
Prashant Mital
4cdd3450ac
PYTHON-1670: Implement Unified URI Options ( #386 )
2019-01-17 10:02:37 -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
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
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
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
Felipe Rodrigues
6afcf14f4f
Add class docstring to MongoClient ( #372 )
2018-08-24 10:09:17 -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
a22719853e
PYTHON-1613 Invalidate cache on changed salt or iterations
2018-07-14 12:38:53 -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
749c1a2f0b
PYTHON-1467 - PyMongo no longer supports Python 2.6
2018-07-02 15:15:43 -07:00
Bernie Hackett
bf8019e7bc
Start work on 3.8
2018-07-02 14:41:31 -07:00
Shane Harvey
35391b7c2c
BUMP 3.7.0
2018-06-26 14:08:42 -04:00
Shane Harvey
b57e6e281f
PYTHON-1599 Fix unchecked return value in cmessagemodule
2018-06-26 13:59:02 -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
cb34e31cb0
PYTHON-1560 - Update transaction documentation link
2018-06-24 14:55:35 -07:00
Shane Harvey
3b9e99015f
PYTHON-1508 Only send readConcern on first command in a transaction
2018-06-24 11:39:23 -04:00
Bernie Hackett
1bf9b461b0
PYTHON-1595 - Document operator migrations for count_documents
2018-06-23 13:39:57 -07: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
4a9c65eb22
PYTHON-1329 - OP_MSG unacknowledged bulk writes
2018-06-22 22:00:07 -07:00
Bernie Hackett
f8883dfb1f
PYTHON-1329 - Fix C extensions use for compression
2018-06-21 17:30:15 -07: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
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
Shane Harvey
622d33d0cb
PYTHON-1545 Support for retryable writeConcernErrors
...
Return proper BulkWriteResult after a retryable write succeeds.
Reduce retryable writes test suite time from 90 to 30 seconds by
reducing the heartbeat interval.
2018-06-14 09:51:08 -07:00
Shane Harvey
4cce6d4cdb
PYTHON-1555 Raise more specific errors when SSL handshake fails
...
Always raise CertificateError directly.
2018-06-12 16:37:58 -07:00
Bernie Hackett
91c3793703
PYTHON-1580 - Implement new count API
2018-06-08 14:27:04 -07:00
Bernie Hackett
bb8130abd8
PYTHON-1273 - Cache SCRAM ClientKey and ServerKey
2018-06-08 14:24:05 -07:00
Shane Harvey
e4317d286b
PYTHON-1508 Retryable commit/abort, has_error_label api
...
Retryable commitTransaction/abortTransaction.
Retry writes after certain writeConcernErrors.
Add has_error_label api.
Update unacknowledged write concern error messge.
Resync transaction tests and update test runner.
2018-06-07 14:39:52 -07:00
Shane Harvey
96aeb461f9
PYTHON-1545 Consider more errors retryable
2018-06-07 14:37:01 -07:00
Bernie Hackett
64cf053092
PYTHON-1524 - Fix Collection options handling
2018-06-07 07:11:26 -07:00