Noah Stapp
e1751ff253
PYTHON-5668 - Merge backpressure branch into mainline ( #2729 )
...
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
Co-authored-by: Shane Harvey <shnhrv@gmail.com>
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Albertson <kevin.albertson@mongodb.com>
Co-authored-by: Casey Clements <caseyclements@users.noreply.github.com>
Co-authored-by: Sergey Zelenov <mail@zelenov.su>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-14 12:25:29 -04:00
Steven Silvester
9dbccbee2c
PYTHON-5492 Fix handling of MaxTimeMSExpired responses ( #2477 )
2025-08-15 19:13:51 -05:00
Steven Silvester
1ffdedc7a4
PYTHON-5492 Mark test as flaky ( #2472 )
2025-08-14 13:54:24 -05:00
Iris
0e407351a4
PYTHON-5392 Better test assertions for comparisons ( #2350 )
...
Co-authored-by: Noah Stapp <noah@noahstapp.com>
2025-06-27 14:06:00 -07:00
Noah Stapp
04ebbcde87
PYTHON-5259 - Better test assertions for error substrings ( #2253 )
2025-04-02 08:22:25 -04:00
Noah Stapp
34ca759f85
PYTHON-5113 - Refactor test utils for async ( #2149 )
2025-03-12 12:59:56 -04:00
Shane Harvey
9edfc626ed
PYTHON-5167 Properly cleanup test SocketGetter tasks ( #2176 )
2025-03-04 11:25:15 -08:00
Noah Stapp
338b7dcd49
PYTHON-5092 - Convert test.test_pooling to async ( #2145 )
2025-02-13 13:01:42 -08:00
Noah Stapp
739510214b
PYTHON-4731 - Explicitly close all MongoClients opened during tests ( #1855 )
2024-09-17 09:22:17 -04:00
Shane Harvey
0a578b4452
PYTHON-4396 Unskip failCommand+appName tests on MongoDB 4.4.7+ ( #1735 )
2024-08-08 11:26:25 -07:00
Shane Harvey
dcaa42bfa4
PYTHON-4632 Fix test_connection_timeout_message ( #1774 )
2024-08-07 11:31:23 -07:00
Noah Stapp
ffa6555485
PYTHON-4476 Separate data and IO classes more effectively ( #1678 )
2024-06-26 10:12:39 -07:00
Noah Stapp
d6bf0e1e78
PYTHON-4264 Async PyMongo Beta ( #1629 )
2024-06-06 09:01:24 -07:00
Noah Stapp
06653c9e21
PYTHON-3926 Add more information to connection errors and timeouts ( #1375 )
2023-10-30 14:20:18 -07:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff ( #1399 )
2023-10-19 11:56:22 -05:00
Noah Stapp
c88ae79e58
PYTHON-3879 Rename SocketInfo to Connection ( #1329 )
2023-07-28 10:04:16 -07:00
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 ( #1196 )
...
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07:00
Shane Harvey
8496ed4b3d
PYTHON-3142 Stop using $where in test_maxConnecting ( #886 )
2022-02-23 11:52:55 -08: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
Shane Harvey
c94a3ad1df
PYTHON-2585 Remove legacy multi-auth code ( #816 )
2021-12-09 18:00:41 -08:00
Julius Park
b05ac0e7ba
PYTHON-2460 Client can create more than minPoolSize background connections ( #782 )
2021-11-08 16:12:45 -08:00
Shane Harvey
b342990934
PYTHON-2164 Add MongoClient.options, remove redundant properties ( #772 )
2021-11-03 11:21:33 -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
a80169d1fa
PYTHON-2463 Do not allow a MongoClient to be reused after it is closed ( #737 )
2021-09-24 15:37:24 -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
Prashant Mital
b3118e034e
PYTHON-2162 Remove support for ssl* URI options ( #706 )
2021-08-19 14:58:31 -07:00
Shane Harvey
e3a61b9ff7
PYTHON-1840 Remove waitQueueMultiple and ExceededMaxWaiters ( #699 )
2021-08-09 10:53:28 -07:00
Shane Harvey
369d175993
PYTHON-2430 Remove all helpers in the message module ( #695 )
2021-08-06 13:33:21 -07:00
Prashant Mital
f07da34f97
PYTHON-2545 Test Atlas Serverless ( #664 )
2021-07-27 16:35:09 -07:00
Shane Harvey
4c77d7c855
PYTHON-2677 Better wait queue timeout errors for load balanced clusters ( #639 )
...
Remove checkout argument in favor of SocketInfo.pin_txn/pin_cursor()
2021-06-21 18:29:36 -07:00
Shane Harvey
ac2f506ba2
PYTHON-2453 Add MongoDB Versioned API ( #536 )
...
Add pymongo.server_api.ServerApi and the MongoClient server_api option.
Support Unified Test Format version 1.1 (serverParameters in
runOnRequirements)
Skip dropRole tests due to SERVER-53499.
2021-01-11 18:16:00 -08:00
Shane Harvey
86b40c195d
PYTHON-2462 Avoid connection storms: implement pool PAUSED state ( #531 )
...
Mark server unknown and clear the pool when background connections fail.
Eagerly evict threads from the wait queue when pool is paused. Evicted
threads will raise the following error:
AutoReconnect('localhost:27017: connection pool paused')
Introduce PoolClearedEvent and ConnectionPoolListener.pool_ready.
CMAP spec test changes:
- CMAP unit tests should not use real monitors
- Assert that CMAP threads complete all scheduled operations
2021-01-06 15:15:37 -08:00
Shane Harvey
5625860688
PYTHON-2443 Fix TypeError when pyOpenSSL socket has timeout of None ( #527 )
2020-12-01 07:57:30 -10:00
Shane Harvey
d1fd3f7e98
PYTHON-2363 Rate limit new connection creations via maxConnecting ( #511 )
...
At most 2 connections can be in the pending state per connection pool.
The pending state covers all the work required to setup a new connection
including TCP, TLS, and MongoDB authentication. For example, if two
threads are currently creating connections, a third thread will wait for
either an existing connection to be checked back into the pool or for
one of the two threads to finish creating a connection.
The change reduces the likelihood of connection storms and improves the
driver's ability to reuse existing connections.
2020-11-23 15:55:54 -08:00
Shane Harvey
5b49557c59
PYTHON-2268 Close clients in test suite
2020-06-03 17:05:59 -07:00
Shane Harvey
71d1227932
PYTHON-2115 Remove threading.Lock() from SocketChecker
2020-04-28 16:41:56 -07:00
Bernie Hackett
5df94d08f0
PYTHON-2040 PyOpenSSL support
2020-02-06 18:03:21 -08:00
Shane Harvey
9cf0fbd785
PYTHON-2001 Fix warnings emitted by Python 3.8 ( #428 )
...
Fix DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
Fix DeprecationWarning: isAlive() is deprecated, use is_alive() instead
Fix SyntaxWarning: invalid escape sequence
Test Python 3.8 on Travis
2019-11-08 11:48:15 -08:00
Shane Harvey
f588412b67
PYTHON-1842 Implement Connection Monitoring and Pooling spec
2019-06-13 15:50:49 -07:00
Bernie Hackett
507f954ed4
Update copyright dates
2017-12-01 17:23:39 -08:00
Bernie Hackett
e8e77f5a2c
PYTHON-1227 - Don't use select.POLLNVAL
...
It causes problems with Jython and seems unnecessary
since we know the fd represents an open socket.
2017-03-27 17:16:37 -07:00
Bernie Hackett
1108a3a8e0
PYTHON-1222 - Attempt to fix pooling test on zSeries
2017-03-18 15:57:50 -07:00
Shane Harvey
d32d2ff7a5
PYTHON-1227 Disable various pool tests on Jython
2017-02-17 13:55:50 -08:00
Shane Harvey
6f4336efd4
PYTHON-1222 Disable test_max_pool_size_with_connection_failure
2017-02-17 13:55:50 -08:00
Shane Harvey
8156688854
PYTHON-1189 Fix race condition in poll.poll
...
Each Pool guards its poll.poll with a mutex to prevent concurrent calls.
poll and select are retried if they are interrupted with EINTR. Also fixes
PYTHON-1179.
2016-11-18 16:15:41 -08:00
Shane Harvey
5905a86785
PYTHON-1075 Support running the entire test suite with SSL/TLS
...
SSL connections are configurable via the environment variables
"CLIENT_PEM", "CA_PEM", and "CERT_REQS".
2016-09-28 16:34:14 -07:00
Bernie Hackett
e89ba4bcd0
PYTHON-1026 - Remove test assumption about primary host
2016-09-21 11:15:43 -07:00
Bernie Hackett
b2a6fc61fd
Improve socket_closed test
2015-09-21 14:18:19 -07:00