Commit Graph

4120 Commits

Author SHA1 Message Date
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
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
96aaf2f527 PYTHON-1562 Add transaction examples for docs 2018-06-13 18:01:34 -07:00
Bernie Hackett
3d8155d87d Claim support for Python 3.7 2018-06-13 13:56:55 -07:00
Bernie Hackett
657b07828e Update changelog 2018-06-13 13:53:51 -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
Shane Harvey
a423dc6b1b PYTHON-1583 Update ChangeStream tests for "drop" operationType 2018-06-12 11:01:10 -07:00
Shane Harvey
adbcc2d6d4 PYTHON-1582 Fix TestChangeStream.test_next_blocks 2018-06-12 11:01:10 -07:00
Shane Harvey
a15c8283dc PYTHON-1584 Skip maxScan tests on 4.1+ 2018-06-12 10:20:49 -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
Bernie Hackett
fc4e8558d6 PYTHON-1574 Don't test TLS with Python26/Windows/MongoDB 4.0+
Python 2.6.6, the last version that shipped installers for
Windows, bundles OpenSSL 0.9.8, which doesn't support TLS 1.1+.
MongoDB 4.0+ requires TLS 1.1+ by default.
2018-06-07 19:23:01 -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
Bernie Hackett
548343c29e PYTHON-1551 - Deprecate MongoClient.close_cursor 2018-06-06 11:17:02 -07:00
A. Jesse Jiryu Davis
32d3f0e80b Spelling 2018-06-06 10:17:19 -04:00
Shane Harvey
6810b454d4 Don't use private slot names on class names with leading underscores 2018-06-05 10:05:39 -07:00
A. Jesse Jiryu Davis
7bd1fac5d6 Obsolete docstring for end_session 2018-06-04 21:54:12 -04:00
Bernie Hackett
577c167c88 PYTHON-1546 - Update various spec tests and adjust runners 2018-06-04 15:44:13 -07:00
Shane Harvey
022da1f5a7 PYTHON-1563 Init ClientContext before test
Increase connect timeout to reduce test flakes.
2018-06-04 14:44:23 -07:00
Bernie Hackett
7d278b2feb PYTHON-1534 - Catch NXDOMAIN for TXT lookups 2018-06-04 13:57:36 -07:00
Bernie Hackett
dbf386c18c PYTHON-1527 - Fix default writeConcern override 2018-06-04 13:56:06 -07:00
Bernie Hackett
8cc2f72e20 PYTHON-1471 - Reenable arbiter tests on 4.0 and latest 2018-06-04 13:54:38 -07:00
Bernie Hackett
3c36692f40 PYTHON-1532 - Clean up after test_lazy_connect_w0 2018-06-04 13:53:08 -07:00
Bernie Hackett
02191a91ea PYTHON-1544 - Resync SDAM tests 2018-06-03 08:19:06 -07:00
Bernie Hackett
b937130364 PYTHON-1537 - Remove test/high_availability 2018-06-03 08:12:45 -07:00
Bernie Hackett
cb85eb02a2 PYTHON-1563 - Avoid import deadlocks in the test suite 2018-06-03 07:34:26 -07:00
A. Jesse Jiryu Davis
c63c068611 PYTHON-1564 Add DriverInfo to handshake metadata
Allow drivers that wrap PyMongo to add their info to the handshake
metadata, using a "driver" option like:

  MongoClient(driver=DriverInfo("MyDriver", "1.2.3"))

The DriverInfo is appended to PyMongo's own metadata.
2018-06-03 10:04:45 -04:00
Bernie Hackett
981e39281f PYTHON-1529 - No implicit sessions with parallel_scan 2018-06-01 18:32:44 -07:00
Bernie Hackett
54b8058c66 PYTHON-1571 - Skip group tests with MongoDB 4.1+ 2018-06-01 18:29:30 -07:00
Bernie Hackett
83eb724aa2 PYTHON-1570 - Add MongoDB 4.0 to the Evergreen matrix 2018-06-01 18:29:30 -07: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
Bernie Hackett
3fd6fd9784 PYTHON-1572 - Don't import hash functions until needed 2018-06-01 07:53:25 -07:00
Bernie Hackett
61850357a0 PYTHON-1521 - Use FNV-1a for ObjectId machine bytes 2018-05-31 12:26:53 -07:00
Shane Harvey
714577c83e PYTHON-1508 commitTransaction can be called multiple times
This change allows applications to check if their transaction was commited or
not by repeatedly calling commit until the transaction state is known.
If a session is used after a commit for any operation (not including
another commit), the operation is not part of a transaction and the session's
transaction state is reset.
2018-05-29 14:33:21 -07:00
Shane Harvey
5a9b3340d9 PYTHON-1508 Fix read preference regression in mapreduce 2018-05-24 13:53:22 -07:00
Shane Harvey
3c2432d641 PYTHON-1543 Write operations should raise WTimeoutError 2018-05-23 19:57:00 -07:00
Bernie Hackett
3e075b0a58 PYTHON-1278 - Fix Windows builds 2018-05-22 15:35:39 -07:00
Shane Harvey
5ff33a2a37 PYTHON-1554 Fix datetime decoding memory leak 2018-05-22 13:42:59 -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
Bernie Hackett
335cb97a34 PYTHON-1278, PYTHON-1553 - Support OP_COMPRESSED 2018-05-22 11:44:21 -07:00
Prashant Mital
505b6ebc37
PYTHON-1558 Use nameOnly option in list_collection_names and collection_names methods 2018-05-18 14:29:44 -07:00
Nikolai Matiushev
72cab9356d PYTHON-1556 Fix compatibility issues with Python >= 3.6 (#352)
Use raw strings to avoid invalid escape sequence warnings in Python >= 3.6
2018-05-15 15:20:03 -07:00