summaryrefslogtreecommitdiff
path: root/src/mongo/executor/connection_pool_test.cpp
AgeCommit message (Collapse)Author
2024-09-13SERVER-92568 add cancellation to ConnectionPool::get (#25235) (#27019)James Bronsted
GitOrigin-RevId: 9dc63bfd3510ba2d03e192170184e5fc0b686f52
2024-05-28SERVER-90610: Enable tidy check misc-unused-alias-decls (#22297)Stephanie
GitOrigin-RevId: 0ad1fdc602207d30cd4386a18d8a64c7379709de
2024-02-09SERVER-72055 NetworkInterfaceTL returns a retryable error when waiting to ↵Alex Li
acquire a connection (#16713) GitOrigin-RevId: 694f587aef997a288619ceff96fb2fdb1e5cd26a
2023-09-07SERVER-80193 Replace Session Tag dependencies with boolean for ↵Alex Li
EgressTagCloser, rename EgressTagCloser to ConnectionCloser
2023-08-24SERVER-80191 Replace Session tags for internal client with Client boolAlex Li
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2023-06-13SERVER-77195 Make executor::ConnectionPool close current generation ↵George Wangensteen
connections to a remote when a connection to that remote is returned with a network error
2023-03-15SERVER-73610 Introduce Connection-Leasing from ConnectionPool and ↵George Wangensteen
NetworkInterface
2022-06-27SERVER-43155 Queries which exceed `maxTimeMS` may return ↵Varun Ravichandran
`NetworkInterfaceExceededTimeLimit` After careful evaluation and research the service-arch team settled into adding a new argument into connection pool's interface allowing their users to specify a custom timeout status in case the pool fails to deliver a connection within a specified time. This timeout status now competes with `NetworkInterfaceExceededTimeLimit` which is now returned either when the Connection Pool Controller is rather used to compute the timeout or when no custom timeout status code is specified. This commit also: - Refactors portions of `ConnectionPoolTest` to reflect changes in the API. - Adds `jstests/sharding/max_time_ms_connection_pool.js` integration test to ensure different timeouts return different statuses. - Fixes small glitch in `jstests/core/tnxs/many_txns.js` where `NetworkInterfaceExceededTimeLimit` might be validly returned under rare resource intense conditions and fail the test, reported as BF-20554.
2022-01-14SERVER-55816: Clamp negative timeouts in connection pools' connectionsTyler Seip
2021-09-24Revert "SERVER-55816: Clamp negative timeouts in connection pools' connections"sergey.galtsev
This reverts commit ed2e91304a83771f20e3df874222984c61a3e884.
2021-09-21SERVER-55816: Clamp negative timeouts in connection pools' connectionsTyler Seip
2021-09-08SERVER-59782 migrate makeGuard calls to ScopeGuardBilly Donahue
2020-08-14SERVER-49371 Revived original recursive ICE and applied to stack overflow testsReo Kimura
2020-08-07Revert "SERVER-49371 Revived original recursive ICE and applied to stack ↵Kaloian Manassiev
overflow tests" This reverts commit 72d104ca45461075fc7a4deb11d3522ff24c62f6. This reverts commit 77ce2860da66ab9924c0668c76fae564eb7c7dfc.
2020-08-07SERVER-49371 Revived original recursive ICE and applied to stack overflow testsReo Kimura
2020-06-17SERVER-48511 Improve ConnectionPool error messagesAmirsaman Memaripour
2020-03-26SERVER-47139 Introduce GuaranteedExecutor classBen Caimano
This commit does the following: - Introduces the GuaranteedExecutor/GuaranteedExecutorWithFallback class for when a callback *must* run! - Centralizes testing Executors in executor_test_util.h! - Makes a testing suite for InlineCountingExecutor, RejectingExecutor, and GuaranteedExecutor!
2019-07-27SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.1
2019-07-24SERVER-42286 Return connections inline, spawn connections out-of-lineBen Caimano
2019-07-01SERVER-42026 Lock during ConnectionPool::SpecificPool::spawnConnections()Ben Caimano
2019-06-19SERVER-41602 Activate followBusiestNode in ShardingTaskExecutorBen Caimano
2019-06-13SERVER-35797 Add timeout value to NetworkInterfaceExceededTimeLimit messagesAlya Berciu
2019-06-10SERVER-39339 Remove `stdx/memory.h`ADAM David Alan Martin
2019-05-29SERVER-41318 Return SemiFutures for ConnectionPoolBen Caimano
2019-04-26SERVER-40819 Use ConnectionPool shared_ptr for full lifetime managementBen Caimano
2019-04-05SERVER-39814 Add OutOfLineExecutor to ConnectionPool factory interfaceBen Caimano
2019-04-03Revert "SERVER-39814 Add OutOfLineExecutor to ConnectionPool factory interface"Benety Goh
This reverts commit f4b07839c904a73d28e3994af5bc902004fd4f9d.
2019-04-02SERVER-39814 Add OutOfLineExecutor to ConnectionPool factory interfaceBen Caimano
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2019-01-11SERVER-30711: scope_guard rewrite, to avoid -Werror=noexcept-typeBilly Donahue
Macro ON_BLOCK_EXIT(...) now takes a single callable, Some renames: Dismias -> dismiss MakeGuard => makeGuard
2018-12-20SERVER-35688 Make ConnectionPool support transport::ConnectSSLModeMathias Stearn
2018-12-11SERVER-36415 Allow dropConnections to take in a HostAndPort in EgressTagCloserJonathan
2018-12-07SERVER-38183 add tryGet to exec connpoolJason Carey
Add a method that returns a connection to a host without a context switch if connections are available and no requests are pending.
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2018-04-13SERVER-33821 Implement NetworkInterfaceTL and AsyncDBClientJonathan Reams
2018-02-15SERVER-32601 add socket tagging/close to egressJason Carey
2017-06-02SERVER-29237 add maxConnecting in asio connpoolJason Carey
A new connection pool option which controls that rate at which we add new connections. It changes behavior so that only N connections can be in the processing state at any one time (in setup/refresh). More connections will be added, if needed, as each new connection completes, fails or times out. available in mongos via ShardingTaskExecutorPoolMaxConnecting, defaults to unlimited.
2017-04-20SERVER-28853 Properly test that host timeouts are delayed in ↵samantharitter
connection_pool_test
2017-04-13SERVER-28664 Use pool connections in MRU orderAndrew Morrow
2016-12-13SERVER-27388 Add NetworkInterfaceExceededTimeLimitJason Carey
max_time_ms_sharded.js uses a fail point to trigger immediate ExceededTimeLimit returns from commands. This triggers during connection establishment via the connection hook, which returns ExceededTimeLimit to the connection pool and causes us to spin on connection creation. The fix involves providing our own internal exceeded time limit that doesn't collide with the remote value.
2016-12-08SERVER-27232 Fix early timeout in ASIO connpoolJason Carey
Initial connects and later refreshes have a timeout associated with them in ASIO that isn't linked to any user generated timeout. These timeouts, when they trigger, are registered as general failures however. And general failures cause us to dump all connections from the pool (propagating that error to all consumers currently waiting for a connection). That scheme is sound for actual io errors (because a failure to rpc on one connection almost certainly means something is badly wrong with all other open connections), but causes us to fail early and often when applied to timeouts. The fix is to treat timeouts on connect and refresh lightly (start connecting a new connection on timeout) and allow the general request timeouts to handle timing out user requests.
2016-09-27SERVER-25218 add more information to connPoolStatsMatt Cotter
* group stats by pool * fix tests that relied on broken behavior
2016-05-28SERVER-23971 Clang-Format codeMark Benvenuto
2015-11-04SERVER-20546 Abort if connections are returned to connection pool in an ↵samantharitter
unknown state
2015-09-09SERVER-19769 Fixups for Connection PoolingJason Carey
Various fixes for connection pooling
2015-09-01SERVER-19769 Pool connections in NetworkInterfaceASIOJason Carey