Shane Harvey
a624197338
PYTHON-3260 Improve test_transaction_starts_with_batched_write and test_continuous_network_errors ( #945 )
2022-05-10 10:29:48 -07:00
Shane Harvey
821b5620f7
PYTHON-3198 Fix NameError: name sys is not defined ( #920 )
2022-04-05 13:07:06 -07:00
Shane Harvey
c58950a8d4
PYTHON-3186 Avoid SDAM heartbeat timeouts on AWS Lambda ( #912 )
...
Poll monitor socket with timeout=0 one last time after timeout expires.
This avoids heartbeat timeouts and connection churn on Lambda and other FaaS envs.
2022-03-30 14:29:46 -07:00
Shane Harvey
75fa14d19b
PYTHON-3084 MongoClient/Database/Collection should not implement Iterable ( #909 )
2022-03-28 15:09:53 -07:00
Julius Park
9562a81903
PYTHON-3119 getMore helper should explicitly send inherited comment ( #904 )
2022-03-25 16:47:18 -07:00
Shane Harvey
9ada6543d5
PYTHON-3174 Remove noisy running Topology check for main test client ( #898 )
2022-03-15 14:52:47 -07:00
Steven Silvester
a61ea0660a
PYTHON-3090 Clean up Database Command Typing ( #879 )
2022-03-02 13:10:15 -06:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting ( #868 )
2022-02-17 06:44:08 -06:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter ( #852 )
2022-02-09 06:44:28 -06:00
Steven Silvester
f4cef37328
PYTHON-3064 Add typings to test package ( #844 )
2022-02-07 19:33:41 -06:00
Shane Harvey
c94a3ad1df
PYTHON-2585 Remove legacy multi-auth code ( #816 )
2021-12-09 18:00:41 -08:00
Shane Harvey
12a6af7ab6
PYTHON-2981 Stop using MongoClient.address for hashing and equality ( #795 )
2021-11-17 12:31:59 -08:00
Shane Harvey
b342990934
PYTHON-2164 Add MongoClient.options, remove redundant properties ( #772 )
2021-11-03 11:21:33 -07:00
Shane Harvey
8b2eb24c35
PYTHON-2164 Remove client max_bson_size/max_message_size/max_write_batch_size ( #766 )
...
Use the hello command instead:
doc = client.admin.command('hello')
max_bson_size = doc['maxBsonObjectSize']
max_message_size = doc['maxMessageSizeBytes']
max_write_batch_size = doc['maxWriteBatchSize']
Also add documentation for TopologyDescription.apply_selector.
2021-11-01 14:26:47 -07:00
Julius Park
9844d3dc03
PYTHON-2972 Test Failure - test_srv_max_hosts_kwarg when dnspython is not installed ( #768 )
2021-10-28 16:05:32 -07:00
Julius Park
bfa5aafb34
PYTHON-2832 Provide options to limit number of mongos servers used in connecting to sharded clusters ( #754 )
2021-10-26 14:47:51 -07:00
Shane Harvey
f4eb8f93fd
PYTHON-2966 Make MongoClient.event_listeners work as expected ( #761 )
2021-10-22 14:43:20 -07:00
Julius Park
d77cb674b6
PYTHON-2717 Treat maxPoolSize=0 the same as maxPoolSize=None
2021-10-21 15:48:58 -07:00
Shane Harvey
df6f6496a4
PYTHON-2927 PYTHON-2937 Skip failing tests on PyPy ( #753 )
...
Cleanup test clients more eagerly.
2021-10-13 10:29:38 -07:00
Julius Park
a4ccfa5b3f
PYTHON-2938 Fix race condition caused by MongoClient._process_periodic_tasks(client) ( #752 )
2021-10-08 17:44:15 -07:00
Julius Park
6bb8a1f411
PYTHON-2823 Allow custom service names with srvServiceName URI option ( #749 )
2021-10-08 11:23:21 -07:00
Julius Park
6e7b652d86
PYTHON-2914 MongoClient should raise an error when given multiple URIs ( #747 )
2021-10-05 14:00:39 -07:00
Julius Park
a80169d1fa
PYTHON-2463 Do not allow a MongoClient to be reused after it is closed ( #737 )
2021-09-24 15:37:24 -07:00
Shane Harvey
968ee7ba96
PYTHON-2868 Test Serverless behind a load balancer ( #742 )
2021-09-23 15:57:57 -07:00
Shane Harvey
11752ed594
PYTHON-2899 Remove code for MongoDB <= 3.4 ( #729 )
...
Remove unneeded memoryview to bytes conversion.
2021-09-16 16:53:50 -07:00
Bernie Hackett
ad4315134c
PYTHON-2803 Get rid of most uses of 'master'
...
This change also resolves PYTHON-2848 for MongoDB 4.0.
2021-09-13 12:50:49 -07:00
Julius Park
88e86f6f5a
PYTHON-2057 Make 'name' a required argument for DriverInfo class ( #718 )
2021-09-08 11:24:10 -07:00
Shane Harvey
2eb0df812c
PYTHON-2879 Fix get_ssl_context for CSFLE and ocsptest.py ( #713 )
2021-08-24 13:36:37 -04:00
Prashant Mital
b3118e034e
PYTHON-2162 Remove support for ssl* URI options ( #706 )
2021-08-19 14:58:31 -07:00
Shane Harvey
10002fad1c
PYTHON-2857 Remove the socketKeepAlive option ( #702 )
2021-08-10 14:00:41 -07:00
Shane Harvey
e3a61b9ff7
PYTHON-1840 Remove waitQueueMultiple and ExceededMaxWaiters ( #699 )
2021-08-09 10:53:28 -07:00
Shane Harvey
7acb58be81
PYTHON-2750 Don't mark arbiter pools ready unless directly connected ( #682 )
2021-07-28 11:30:16 -07:00
Bernie Hackett
c8d920a46b
PYTHON-2795 Improve host parsing and error messages
2021-07-08 14:22:56 -07:00
Shane Harvey
c8f32a7a37
PYTHON-2673 Connection pinning behavior for load balanced clusters ( #630 )
...
Tweak spec test because pymongo unpins cursors eagerly after errors.
Tweak spec test for PoolClearedEvent ordering when MongoDB handshake fails (see DRIVERS-1785).
Only skip killCursors for some error codes.
Rely on SDAM error handling to close the connection after a state change error.
Add service_id to various events.
Retain reference to pinned sockets to prevent premptive closure by CPython's cyclic GC.
2021-06-15 14:14:56 -07:00
Shane Harvey
112ee69de8
PYTHON-2674 Pool.reset only clears connections to the given serviceId ( #628 )
2021-06-15 09:52:30 -07:00
Tyler Willey
9c1ff6ad9d
PYTHON-2743 Fix compatibility with gevent.Timeout ( #633 )
...
gevent.Timeout extends BaseException, not Exception.
2021-06-15 09:33:09 -07:00
Shane Harvey
93ac5e0277
PYTHON-2676 Add load balancer tests in EVG ( #625 )
...
Add load balancer spec tests
Ensure LB supports retryable reads/writes
Add assertNumberConnectionsCheckedOut, createFindCursor, ignoreResultAndError
Add PoolClearedEvent.service_id and fix isClientError unified test assertion
2021-05-27 15:05:26 -07:00
Shane Harvey
6412fed059
PYTHON-2634 Skip arbiter tests when no server is running ( #611 )
2021-04-27 15:52:55 -07:00
Janosh Riebesell
fac0372ba0
PYTHON-2364 Replace deprecated dns.resolver.query with dns.resolver.resolve ( #598 )
...
Fall back to dns.resolver.query for dns v1 compat.
2021-04-23 12:48:09 -07:00
William Zhou
85f9f7a8a1
PYTHON-2397: MongoClient(ssl=True, tls=False) fails with an AttributeError ( #592 )
2021-04-21 11:32:50 -07:00
Shane Harvey
4c7718eb5a
PYTHON-2634 Only update pools for data-bearing servers ( #590 )
...
Fixes a noisy OperationFailure: Authentication failed error.
Do not attempt to create unneeded connections to arbiters, ghosts,
hidden members, or unknown members.
2021-04-19 13:24:54 -07:00
William Zhou
0752280ada
PYTHON-2480: Add MongoClient helper to access the current TopologyDescription ( #583 )
2021-03-25 10:14:16 -07:00
Shane Harvey
80adc13195
PYTHON-2615 Reinstate TLS network timeout workaround due to eventlet ( #581 )
...
PYTHON-2616 Fix test_network_error_message when TLS is enabled.
2021-03-19 21:47:53 -07:00
Shane Harvey
4364b7c43a
PYTHON-2596 Include host in error message when connection is closed ( #575 )
...
Use raise from syntax when re-raising exceptions in the pool.
2021-03-03 16:33:42 -08:00
Shane Harvey
95974617bd
PYTHON-1314 Remove Database.authenticate and Database.logout ( #568 )
2021-02-17 14:16:07 -08:00
Bernie Hackett
cf877e95c7
PYTHON-2503 Always use time.monotonic
...
For monotonic time needs.
2021-01-25 12:48:31 -08:00
Bernie Hackett
1f1670cc35
PYTHON-1974 Drop support for Python 3.4
2021-01-22 15:54:26 -08:00
Bernie Hackett
e17299ab2e
PYTHON-2133 Remove u prefixes from code
2021-01-20 16:10:23 -08:00
Bernie Hackett
a72e8b8823
PYTHON-2133 Remove py2 support from test
...
Also delete bson/py3compat.py
2021-01-20 09:40:36 -08:00
Shane Harvey
6e8c3708b8
PYTHON-1587 Remove MongoClient.database_names and Database.collection_names ( #551 )
2021-01-15 16:53:42 -08:00