| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
(cherry picked from commit 5c1a3ec728a71bca81629f99be782ac305a6ad4b)
|
| |
|
|
|
|
|
|
| |
Because a lock acquisition can time out due to the minimum of the passed-in deadline or the MaxLockTimeout set on the Locker, we cannot show the exact deadline used for the timeout in the timeout message.
(cherry picked from commit 1e03955cdab995fed6672d75a6a4544a9771a279)
|
|
|
|
|
|
| |
previous operations
(cherry picked from commit b5ca922655a1d0a438c39c38b2c4434016069cb7)
|
|
|
|
|
|
| |
UninterruptibleLockGuard when WiredTiger tickets are exhausted
(cherry picked from commit 57b4b2216ffc7986440b87f9659e970e061b9f33)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
tickets are exhausted may lead to deadlock
(cherry picked from commit 210bb5d91cb3c77bb3ed169114f8b85cd1062fb3)
|
|
|
|
| |
(cherry picked from commit 4ce2c25a29ca1442ae3f81777d8251cf5368ee22)
|
|
|
|
|
|
|
|
| |
repairDatabase cmd
Added RAII object around UUIDCatalog::onCloseCatalog and UUIDCatalog::onOpenCatalog
(cherry picked from commit 9184a03574c398b087b929fda8ed428f0c64d28c)
|
|
|
|
| |
(cherry picked from commit cc8aab5249ccdec471e33bda087faecb53a6d9bf)
|
|
|
|
|
|
| |
debug checks
(cherry picked from commit ec2b67ac05f7aaa05b990e18cd7c23109a2e6eb7)
|
|
|
|
| |
(cherry picked from commit adad00367e75e7c71a781e4610321f7be5d98aa6)
|
|
|
|
| |
timeout
|
|
|
|
| |
maxTransactionLockRequestTimeoutMillis, which defaults to 0 millis
|
|
|
|
| |
rpc/protocol
|
|
|
|
| |
behavior when interrupted
|
| |
|
|
|
|
|
| |
This reapplies bc19d43f, which was reverted by ae50776b. It also adds
more test fixes.
|
| |
|
| |
|
|
|
|
| |
This reverts commit bc19d43fdc4aab85264def96f638128c0ddb8483.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The description of this SERVER ticket describes a nasty race that can
occur if elections happen inbetween two batches during a large
update. (The included test confirms that the race is possible.)
To fix this, we want to check the operation context for interrupts
with each batch, and we need to make sure the check happens _after_
the collection lock gets taken and before the batch
inserts/updates/deletes execute.
A recent change to locking gives us almost exactly this for free: if a
collection lock has to wait, it throws an exception when the operation
context is interrupted, ending the operation. If the lock doesn't
wait, though, there is no check.
This patch adds that check in. Acquiring a lock now always throws if
the operation context is interrupted, which closes the race window in
this bug.
|
| |
|
| |
|
| |
|
|
|
|
| |
(Replaces the pre-allocated array in FastMapNoAlloc with a dynamic deque)
|
| |
|
|
|
|
| |
transaction resources
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current Decorable system type-erases the most derived (Decorated)
type when registering Decorations. This is illegal as derived classes
which are no longer standard-layout can have the `Decorable` base
class reordered with respect to the base address of their storage.
This also removes the "with-owner" forms of declaring a decoration,
which caused problems with layout. The decoration handles have
been modified to provide mechanisms to get back to the owner
directly, given a pointer or reference to the decoration.
|
| |
|
|
|
|
| |
ParallelBatchWriterMode
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
These headers date from before C++11 support and the `::mongo::stdx::`
namespace. They can be removed and uses of the names therein can
be changed to `::mongo::stdx::unordered_`* forms.
|
|
|
|
| |
This reverts commit da5520555faef9a2ba9b6c9ec80539ae95ad88a5.
|
| |
|
|
|
|
| |
WriteUnitOfWork
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|