summaryrefslogtreecommitdiff
path: root/src/mongo/s/async_requests_sender.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-36231 Mongos write path doesn't look for retryable write concern errorsRandolph Tan2019-02-201-0/+4
| | | | (cherry picked from commit 9df4dbcffefe8f9cf2d669603f230c1f44ac5652)
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-191-8/+10
|
* SERVER-34798 Remove ServiceContext subclasses and use new ServiceContext in ↵Henrik Edin2018-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | every unit test. This patch does several loosely related and surprisingly hard to separate things. 1.) Make the ServiceContext class final 2.) Create a mechanism, called ConstructorActions, for running methods on ServiceContexts immediately after they're built and immediately before they're destroyed. 3.) Introduce / improve test fixture base classes for tests, giving them fresh ServiceContext instances for each test case. There is one fixture for tests that need a storage engine and another for those that do not. 4.) Make several remaining global variables SC decorations in support of (3) 5.) Replace many MONGO_INITIALIZERS that access getGlobalServiceContext with the new constructor-actions system, which is needed for (3.) 6.) Fix up tests to use the fixtures from (3) and fix tests that silently used different service contexts in together in a technically illegal fashion that now breaks. 7.) Utilize (2) as necessary to simplify initialization of new ServiceContexts, simplifying the fixtures in (3). (cherry picked from commit d520be0814492c262515cf0a5d62a127ace70dce) SERVER-35985 Destroy clients started in other threads. (cherry picked from commit 9a68eb0cc65a93233b4ff5746330f9eb77de9b90) SERVER-36258 Construct ServiceContext after mongo initializers complete. (cherry picked from commit bfe170e49b1dc10b2badde45bc13c057a2f8ab61) SERVER-36400 Explicitly destroy the client on exiting run() of each BackgroundJob (cherry picked from commit b079e4713d897b5541c2804386025817ec720800) SERVER-36351 Fix so ServiceContextMongoDTest removes the temp directory in its destructor. (cherry picked from commit 4c16f0f336f4db77034e8aa594bbd4a5bac3f40c) SERVER-36347 Fix parse_zone_info.py after ServiceContext refactor. (cherry picked from commit c9d4204b6243e5eee6fe0b5e2c34d02af9ac5edb)
* SERVER-35234 makePromiseFuture<T>()Mathias Stearn2018-08-171-5/+4
| | | | (cherry picked from commit f0e5229b631668c9bde511e607bf52fd871e582d)
* SERVER-34753 ARS::_makeProgress uses passed opCtxJason Carey2018-04-301-2/+5
| | | | | | The AsyncRequestsSender::_makeProgress method must use the passed opCtx to check for interruption.  Using _opCtx will cause it to throw out of cleanup
* SERVER-34739 Migrate to 1 connpool in ARSJason Carey2018-04-271-7/+102
| | | | | | | | Migrate to 1 connection pool in mongos. This change involves the introduction of a transport layer baton, which improves perf for a particular transport layer when doing local scatter/gather operations.
* SERVER-34582 Replace object level lock for ARSJason Carey2018-04-241-42/+21
| | | | | | | | | | ARS holds a lock during scheduling, to prevent notification during scheduling. As an unfortunate side effect, this prevents callbacks from resolving during scheduling. (which can cause background executors to block in executing a callback). This replaces the mutex with a producer consumer queue which handles responses, and moves response handling into calls to next().
* SERVER-27664 Use scatterGatherVersionedTargetByRoutingTable instead of ↵Kaloian Manassiev2018-03-051-2/+2
| | | | | | | | | passthrough in commands_public.cpp This change replaces all usages of passthrough, which are used for sharded and unsharded collection routing from commands_public.cpp. All remaining usages of passthrough will be replaced with direct Shard::runCommand instead.
* SERVER-32070 migrate some easy stdx::bind to lambdas (pt3)Billy Donahue2017-12-141-3/+3
|
* SERVER-30838 Remove _inlock names in sharding subsystemNathan Myers2017-09-251-5/+5
|
* SERVER-28875 make the ARS take a RetryPolicyEsha Maharishi2017-09-131-3/+8
|
* SERVER-30580 Eliminate UserException and MsgAssertionException typesMathias Stearn2017-08-161-1/+1
| | | | All users were converted to just use AssertionException.
* SERVER-28814 Replace ServerSelectionMetadata with just ReadPreferenceSettingMathias Stearn2017-05-121-6/+1
|
* SERVER-28542 make ARS store interrupt status instead of CallbackCanceled in ↵Esha Maharishi2017-03-301-5/+9
| | | | remotes if interrupted
* SERVER-28353 make ARS actually interruptible from the deadline on the ↵Esha Maharishi2017-03-231-19/+29
| | | | OperationContext
* SERVER-28164 make ClusterWrite::run path use ARS instead of DBClientMultiCommandEsha Maharishi2017-03-131-162/+121
|
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-14/+17
| | | | | | This commit is an automated rename of all whole word instances of txn, _txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all .cpp and .h files in src/mongo.
* SERVER-28163 make cluster_get_last_error_cmd.cpp use ARS instead of ↵Esha Maharishi2017-03-061-6/+14
| | | | DBClientMultiCommand
* SERVER-28173 create a component that sends requests in parallel to multiple ↵Esha Maharishi2017-03-021-0/+336
hosts over ASIO