| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
(cherry picked from commit 6403c6a71e03cee4f6bebbc67b06ba46fbf632c4)
|
|
|
|
|
|
|
| |
Closes #1252
Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com>
(cherry picked from commit a1fad21d12d53d755634740e6b6fe1bc970494c8)
|
|
|
|
| |
(cherry picked from commit dbd844703ad91562c9fe921b6911f57c29a3f0ea)
|
|
|
|
| |
(cherry picked from commit 14eb0afce97b372d0dc4d2a4c41a00318a36b0e2)
|
|
|
|
| |
(cherry picked from commit 9e1dd9db4bf614c785f51b23f73facc45fd75302)
|
|
|
|
|
|
|
|
| |
Microsoft's compiler has trouble with non-enclosed try-blocks,
even when not function-level try blocks. Also silenced some
type-mismatch warnings on high warning levels.
(cherry picked from commit c467afb7b0c2c3c8f1f12ddcff01400466a53fed)
|
|
|
|
|
|
|
|
| |
The current implementation of DNS name processing uses raw string
processing. This change alters the mechanism to use a proper DNS
name type which parses the hostname for proper processing.
(cherry picked from commit 181c43bd006666b07441bb3be61b7324ef7dcc80)
|
| |
|
|
|
|
| |
(cherry picked from commit 8678e9ee87d2864376922522b9fa9b5a909aac1b)
|
|
|
|
| |
(cherry picked from commit 4ad27bacdc573cb77aae379f7a75742a1dfc2ae1)
|
|
|
|
| |
(cherry picked from commit e7fd01e0293bbb46b330ba00819ceaa638e88921)
|
|
|
|
| |
(cherry picked from commit 4448250e1aa4f778af67fc93176b0d07b3762a1f)
|
|
|
|
|
|
| |
heapProfilingEnabled
(cherry picked from commit 6e82b67a67edf2ca22d7bfa1c2061e56d7c94dea)
|
|
|
|
|
|
| |
embedded when not dragged in by sharding.
(cherry picked from commit 5dd6fcae8bedcf9dcb8a4e2e26b70320b369b48c)
|
|
|
|
| |
(cherry picked from commit 23cd748c2df0800d908bb6c0e8b29d6f6ef7d0da)
|
|
|
|
| |
(cherry picked from commit 38f7aa5ad7aa3b7bf1b9ffa0dc28627083e2f8b8)
|
|
|
|
| |
(cherry picked from commit 656bd63ca02b37bdd3550b7a24c83085da5d145c)
|
|
|
|
| |
(cherry picked from commit 28de1870dd72c6c6b10d2e7428a316b8ef8848ff)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a thread safe execution primitive for running jobs against an executor with mutual
exclusion and queuing by key.
Features:
Keyed - Tasks are submitted under a key. The keys serve to prevent tasks for a given key from
executing simultaneously. Tasks submitted under different keys may run concurrently.
Queued - If a task is submitted for a key and another task is already running for that key, it
is queued. I.e. tasks are run in FIFO order for a key.
Thread Safe - This is a thread safe type. Any number of callers may invoke the public api
methods simultaneously.
Special Enhancements:
onCurrentTasksDrained- Invoking this method for a key allows a caller to wait until all of the
currently queued tasks for that key have completed.
onAllCurrentTasksDrained- Invoking this method allows a caller to wait until all of the
currently queued tasks for all key have completed.
KeyedExecutorRetry - Throwing or returning KeyedExecutorRetry in a task will cause the task to
be requeued immediately into the executor and retain its place in the
queue.
(cherry picked from commit 333fdd10e3981ef3938dc4a6b5807f2f2da95110)
|
|
|
|
| |
(cherry picked from commit 7d4d65716cb95c92bd86f99cd5f9333d664bd780)
|
|
|
|
| |
(cherry picked from commit e3ae39144d5b456085c9c1b34a89d097d457cffb)
|
|
|
|
|
|
|
|
|
| |
The periodic runner impl starts jobs immediately, rather than waiting
for some time to pass on their first run. That's fine, and the correct
behavior, but the unittest assumes that doesn't happen. The unittest
needs to be updated to reflect realty.
(cherry picked from commit b0c577146568c6e1d51b2db29bf21f4d87e93c85)
|
|
|
|
|
|
|
|
|
| |
To facilitate using the mongodb code as an in-process embeddable
library, we have created a dummy auth layer which can stand in for
the real auth system in these contexts. Several link edges needed
to be retargetted, and some tests needed to be relaxed.
(cherry picked from commit ac1ceb8cb4994e235abe9a364c3dd7a2bfa84a62)
|
|
|
|
|
|
|
|
|
|
|
| |
It's sometimes useful to be able to check a pre-condition on a fail
point without manipulating the fail point state (decrementing nTimes for
instance).
Adding a callable to shouldFailOpenBlock and shouldFail, and threading
that through a new block macro MONGO_FAIL_POINT_BLOCK_IF, allows for
observation of the fail point payload and a chance to abort without
extra overhead if the fail point is disabled.
|
| |
|
| |
|
|
|
|
|
| |
Replace PeriodicRunnerASIO with PeriodicRunnerImpl, a simpler interface
that runs jobs on dedicated threads.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
rpc/protocol
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding an integration test for transport layer asio which uses a fail
point to induce single byte at a time reads and writes. We use this,
along with a debug block in the future header, to ensure that the
continuation folding in futures is working properly with
opportunisticRead/Write chaining.
To test the other side of this, adding a new test command called "echo"
which returns the command object passed to it (to allow for a large
message body on the read and write path more easily).
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
Add a side channel to the asio ssl streams which allows us to capture
the work remaining for the tcp send in the event of a full send buffer.
This makes opportunistic writes safe for ssl sockets
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
StringBuilder/str::stream
This includes a partial revert of 80f409d1311eb8d20251d17be474aff382538b84
(SERVER-34307) to address this bug.
|
| |
|
|
|
|
| |
Also removes the unimportant but flaky scoped_db_conn_test
|
| |
|
|
|
|
| |
RFC 2253
|