Commit Graph

4606 Commits

Author SHA1 Message Date
Prashant Mital
14dadbb728
BUMP 3.11.2 (#528) 2020-12-02 14:13:02 -08:00
Shane Harvey
65fec19f0e PYTHON-2443 Fix TypeError when pyOpenSSL socket has timeout of None (#527)
(cherry picked from commit 5625860688)
2020-12-01 08:02:59 -10:00
Prashant Mital
5b845ec80c
PYTHON-2440 Workaround namedtuple._asdict() bug on Python 3.4 (#525)
(cherry picked from commit 4119d35d04)
2020-11-24 12:12:14 -08:00
Pascal Corpet
bbb701f4e9 PYTHON-2438 Fix str representation of BulkWriteError (#522)
(cherry picked from commit 86d58113e5)
2020-11-23 09:48:19 -08:00
Shane Harvey
56625707b8 PYTHON-2433 Skip test_continuous_network_errors on Jython
(cherry picked from commit 92aed33694)
2020-11-20 22:21:42 -08:00
Shane Harvey
390bea9fa6 PYTHON-2431 Fix MONGODB-AWS auth tests on macOS (#521)
(cherry picked from commit 22a7e8085c)
2020-11-20 21:48:11 -08:00
Shane Harvey
f7eae9922f PYTHON-2433 Fix Python 3 ServerDescription/Exception memory leak (#520)
When the SDAM monitor check fails, a ServerDescription is created from
the exception. This exception is kept alive via the
ServerDescription.error field. Unfortunately, the exception's traceback
contains a reference to the previous ServerDescription. Altogether this
means that each consecutively failing check leaks memory by building an
ever growing chain of ServerDescription -> Exception -> Traceback ->
Frame -> ServerDescription -> ... objects.

This change breaks the chain and prevents the memory leak by clearing
the Exception's __traceback__, __context__, and __cause__ fields.

(cherry picked from commit 6c92e6c67e)
2020-11-20 19:00:45 -08:00
Shane Harvey
fa44639ba1 PYTHON-2436 Skip failing bulk insert test on 4.8+
(cherry picked from commit 4928b9088d)
2020-11-20 12:39:51 -08:00
Shane Harvey
cf391f639e BUMP 3.11.2.dev0 2020-11-20 10:27:14 -08:00
Prashant Mital
1d651b9be8
BUMP 3.11.1 (#516) 2020-11-16 16:01:14 -08:00
Shane Harvey
17dca5c504 Revert "PYTHON-1915: Prohibit copying ClientSession objects (#480)"
This reverts commit 959039b213.
2020-11-16 15:09:31 -08:00
Shane Harvey
30523d282c
PYTHON-2415 Fix pickle support for BulkWriteError exceptions (#514) 2020-11-12 11:04:55 -08:00
Shane Harvey
f1f8cad86d
PYTHON-2403 Add macOS Python 3.9 release automation (#513) 2020-11-10 12:21:36 -08:00
Shane Harvey
98205b8384
PYTHON-2421 Stop testing geoSearch/geoHaystack on MongoDB 4.5+ (#512) 2020-11-05 16:22:23 -08:00
Chris Cho
c92e5520b5
DOP-1671: update GTM code (#507) 2020-11-04 14:00:57 -08:00
Prashant Mital
b009ad7b20
PYTHON-2416 Properly close client in test_encryption.TestDataKeyDoubleEncryption (#510) 2020-11-04 10:04:30 -08:00
Prashant Mital
1e2a52fe8b
PYTHON-2404 Update CSFLE spec tests for KMS providers 'azure' and 'gcp' (#509) 2020-11-04 07:59:54 -08:00
Prashant Mital
e49c418264
PYTHON-2371 Add Azure and GCP support for CSFLE (#506) 2020-10-29 13:44:04 -07:00
Prashant Mital
a7710210a7
PYTHON-1960 Use a virtualenv to run encryption tests (#508) 2020-10-28 20:20:48 -07:00
Shane Harvey
c8be79f4a8
PYTHON-2367 Add release automation for Python 3.9 (#505)
PYTHON-2375 Reinstate macos system python workaround for missing wheel package
Increase task timeout because the manylinux build task takes >30 minutes.
2020-10-21 13:27:00 -07:00
Shane Harvey
e340428f24 PYTHON-2402 Update suse12-test to suse12-sp5-small 2020-10-21 12:29:12 -07:00
Shane Harvey
b210bffc75
PYTHON-2344 Update TLS examples to use unified TLS URI options (#504) 2020-10-19 15:22:28 -07:00
Martin Uhrin
7f1644c6db
Added the mincePy ODM library to documented tools (#502) 2020-10-16 15:16:52 -07:00
Shane Harvey
87e1d4b967
Revert "PYTHON-2362 Use dnspython<2.0 to avoid timeouts (#484)" (#501)
This reverts commit c549740677.
2020-10-14 16:08:43 -07:00
Nick Loadholtes
1002938a8e
Fix maxIdleTimeMS typo in docs (#503) 2020-10-14 09:48:06 -07:00
Shane Harvey
2818a32855
PYTHON-2392 Implicit sessions should always be discarded after connection errors (#498)
PYTHON-2075 Add more sessions tests with more read and write commands
2020-10-12 12:21:45 -07:00
Shane Harvey
d3e66a6702
PYTHON-2308 Test that we exclusively depend on existence of logicalSessionsTimeoutMinutes for sessions support (#499) 2020-10-08 10:13:42 -07:00
Shane Harvey
337a08c43d
PYTHON-2360 Ensure ConnectionCreatedEvents are emitted before ConnectionReadyEvents (#493)
Connections created in the background (for minPoolSize) are authenticated.
2020-10-06 11:37:27 -07:00
Prashant Mital
594b211ff1
PYTHON-2382 Destroy codec options struct in _cbson._element_to_dict (#496) 2020-10-06 11:01:11 -07:00
Shane Harvey
1c2651be58
PYTHON-2357 Specify error label in retryable writes test (#494)
PYTHON-2356 Add errorLabelsContain/errorLabelsOmit support to retryable writes tests
2020-10-02 12:56:33 -07:00
Shane Harvey
b2fba416e9
PYTHON-2342 Prefer checking error codes over error messages (#492) 2020-10-02 11:30:39 -07:00
Prashant Mital
65699332c4
PYTHON-2376 Fix change stream test failures due to new updateDescription.truncatedArrays field in changeEvent documents (#489) 2020-09-28 15:55:07 -07:00
Shane Harvey
8afbc645a7
PYTHON-2375 Remove macos system python workaround for missing wheel package (#491) 2020-09-28 15:00:40 -07:00
Shane Harvey
cccf37f556
PYTHON-1631 Document new release process (#488) 2020-09-22 10:39:01 -07:00
Shane Harvey
8e7026a83f
PYTHON-2345 Ensure release files can be installed (#487) 2020-09-17 14:00:05 -07:00
Shane Harvey
e1915fc89b
PYTHON-2372 Build macOS releases in Evergreen (#486) 2020-09-15 09:06:19 -07:00
Shane Harvey
1b97eddfbd
PYTHON-2262 Test Python 3.9 in Evergreen (#485) 2020-09-14 11:45:36 -07:00
Shane Harvey
c549740677
PYTHON-2362 Use dnspython<2.0 to avoid timeouts (#484) 2020-09-11 11:35:31 -07:00
Prashant Mital
dc94ca628e
PYTHON-2361 Support parsing as extended JSON representation for subtype 4 binary (#483) 2020-09-09 17:24:29 -07:00
Prashant Mital
963759af33
PYTHON-2354 Add support for JSONOptions.with_options (#482) 2020-09-09 14:15:21 -07:00
Shane Harvey
4a12caae0a
PYTHON-2351 Update sdam monitoring tests with directConnection uri option (#481) 2020-08-28 10:56:15 -07:00
ishmum123
959039b213
PYTHON-1915: Prohibit copying ClientSession objects (#480) 2020-08-21 11:10:40 -07:00
Shane Harvey
031492aefe
PYTHON-2339 Build manylinux2014_aarch64/ppc64le/s390x releases (#478) 2020-08-14 16:41:27 -07:00
Shane Harvey
7903a1c4e1
PYTHON-2332 Skip threaded SDAM tests when cdecimal is monkey patched (#477)
Add 60 second timeout for joining threads in SDAM tests.
2020-08-12 14:55:19 -07:00
Shane Harvey
add995feb4 BUMP 3.11.1.dev1 2020-07-30 14:04:10 -07:00
Shane Harvey
31949fb7e5 BUMP 3.11 (with proper changelog title) 2020-07-30 13:45:25 -07:00
Shane Harvey
316830d7b5 BUMP 3.11.1.dev0 2020-07-30 13:27:09 -07:00
Shane Harvey
9fa94db01a
BUMP 3.11 (#476) 2020-07-30 13:24:44 -07:00
Shane Harvey
c99254fe97
PYTHON-2334 Add regression test for gevent.Timeout compatibility (#475)
Use with statement in Semaphore.release.
2020-07-29 18:05:18 -07:00
TylerWilley
83578dc35f
PYTHON-2334: Fix gevent.Timeout race condition (#472)
If gevent raises a Timeout during self.lock acquisition, a _socket_semaphore count will be lost.
Using "with" will release the condition even on exception being raised.
2020-07-29 16:17:38 -07:00