summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-70793 Make database metadata refresh first check new metadata under ↵r5.0.14-rc0r5.0.14Antonio Fuschetto2022-11-101-0/+34
| | | | the IS lock before taking X lock
* SERVER-70373: Avoid invariant failure while aborting a resharding operationnandinibhartiyaMDB2022-11-092-45/+64
| | | | | | | | (cherry picked from commit fed6f5b5c41b8f9ba5451192f5bf72eb7742c1d5) SERVER-71112: Fix resharding failures count in unittest (cherry picked from commit d8329fbe00da54b5f8b0f60889364e7920968756)
* SERVER-70879 Fix race where multiple threads are turning an index multikey ↵Henrik Edin2022-11-092-1/+142
| | | | | | | | | | concurrently Fix race where the writes to the durable catalog are serialized but the second writer is using a stale in-memory state due to the commit handler not being executed yet. This interleaving does not cause a write conflict as the writes are serialized but the second writer overwrote the multikey paths set by the first writer. To handle it we always read the latest state from the durable catalog before performing multikey writes. This guarantees that we always are operating on the latest state. Some care was needed to ensure index offsets remain stable. (cherry picked from commit 74bf9118e38ff4ee63db8bb17146dabe3ef07392)
* SERVER-70381 Fixing Sharding API usageSergi Mateo Bellido2022-11-081-6/+11
|
* Import wiredtiger: 8071ed76b2c701099cbb19b16d3b3c4de23d7c36 from branch ↵Luke Chen2022-11-084-7/+29
| | | | | | | | | mongodb-5.0 ref: 2a44acce45..8071ed76b2 for: 5.0.14 WT-9599 Acquire the hot backup lock to call fallocate in the block manager (#8212) (#8249) (#8461)
* SERVER-67795: Add serverstatus counters for updateMany, deleteMany calls(v5.0)Adi Zaimi2022-11-074-0/+32
|
* SERVER-60143 Avoid clearing filtering metadata after failed metadata refreshJordi Serra Torrens2022-11-041-5/+0
| | | | (cherry picked from commit d517aaef938089d0d5500a6722db53109d4d9965)
* SERVER-69001: Have initial sync persist its last oplog time into the ↵Daniel Gottlieb2022-11-032-46/+57
| | | | | | | minvalid document. (cherry picked from commit ff2fffdf496ac1bc039cd8c84024cc6159cf80b6) (cherry picked from commit 14b1ea6d58cf2a2169b2a07268fa2266419703b4)
* SERVER-60016 serverStatus should not block on the RSTL lock with the WT ↵Jordi Olivares Provencio2022-11-033-22/+32
| | | | storage engine
* SERVER-69868 Return ShutdownStatus When Starting a Shutdown `TransportLayer`Celina Tala2022-11-012-20/+46
| | | | (cherry picked from commit 29006706c176ca036120d1b2569c0f59dd8f53b6)
* SERVER-63585 Allow negative values in WTRecordStore::numRecordsDaniel Gómez Ferro2022-10-312-6/+54
|
* SERVER-69926 errorcodes.py doesn't detect duplicate errors in ↵Reo Kimura2022-10-274-8/+8
| | | | | | MONGO_UNREACHABLE_TASSERT (cherry picked from commit 0d12c83b9b4c3aca1630fc6c41de2f17e4b09ab8)
* SERVER-54284 ExceptionFor<ErrorCodes::WriteConflict> should resolve to ↵Blake Oler2022-10-25174-248/+336
| | | | WriteConflictException
* Import wiredtiger: 2a44acce45238f86124a2ee95e63e45791fb7304 from branch ↵Luke Chen2022-10-214-12/+233
| | | | | | | | | mongodb-5.0 ref: d9340610d5..2a44acce45 for: 5.0.14 WT-9763 Return EBUSY if the time window of inserting record does not match with history store time window (v5.0 backport) (#8378)
* Import wiredtiger: d9340610d5c44fc315912673d15203b25ce5a80b from branch ↵Luke Chen2022-10-212-1/+20
| | | | | | | | | mongodb-5.0 ref: 9a95edfe23..d9340610d5 for: 5.0.14 WT-9323 Fix a race tracking whether a tree has updates after a checkpoint (#8194) (#8228) (#8356)
* Import wiredtiger: 9a95edfe238515bfd3186a1fd3a416e6b62905d1 from branch ↵Luke Chen2022-10-213-2/+107
| | | | | | | | | mongodb-5.0 ref: 05f01e412e..9a95edfe23 for: 5.0.14 WT-8234 Prevent eviction of internal pages while reconciling leaf pages which could refer to their memory. (#7813) (#8348)
* SERVER-69784 Fix signed char misusesMatt Kneiser2022-10-142-3/+5
| | | | (cherry picked from commit 1912e879e904b96a331cd2a2d20e7abf23684359)
* SERVER-69756: Abort a resharding operation immediately.nandinibhartiyaMDB2022-10-143-2/+44
| | | | (cherry picked from commit befe8bb9cf767db458149afca838823d2fd4876c)
* SERVER-69134 Adding a way to clear the metadata managerSergi Mateo Bellido2022-10-135-14/+57
| | | | (cherry picked from commit fa94f5fb6216a1cc1e23f5ad4df05295b380070e)
* SERVER-68477 remove upgrade and downgrade barriers for TTL indexes with NaN ↵Benety Goh2022-10-122-72/+3
| | | | | | | expireAfterSeconds These upgrade/downgrade restrictions were added in commit abdedd367e2f331816354563f8ae95f6bb35c51d and are no longer necessary.
* SERVER-68477 createIndexes overwrites NaN expireAfterSeconds before starting ↵Benety Goh2022-10-122-0/+29
| | | | | | index build (cherry picked from commit 58796facf40c99ddf8bb537adf563dc43aa0a863)
* SERVER-68477 TTLMonitor fixes NaN expireAfterSeconds on TTL indexes during ↵Benety Goh2022-10-122-1/+78
| | | | | | | step up (cherry picked from commit b8eb75f99a18a8651e2315998cf16f53e48917bb) (cherry picked from commit aab9685c531bed030dc8bba914d695d7c66fc08b)
* SERVER-68477 remove epoch restriction on ttl indexesBenety Goh2022-10-124-17/+46
| | | | | (cherry picked from commit eb2f7f03f8c0522f85a9cae2c61bec4673251103) (cherry picked from commit 17d15eb7f3d8b044456ea9191d5777af3fbc5651)
* SERVER-68477 listIndexes repairs TTL indexes with NaN expireAfterSecondsBenety Goh2022-10-113-3/+33
| | | | (cherry picked from commit d6528bf96f08b79ca850902b2d1d81264fa7baa1)
* SERVER-68477 TTL monitor skips indexes with NaN expireAfterSecondsBenety Goh2022-10-111-2/+5
| | | | | | | (cherry-picked from commit 14c07b53186ee88497abd0ba492d2d9157891718) (cherry picked from commit 7d76329f8915ec80ba07c07e4a0adbc7fd187107) (cherry picked from commit 0f56fdb4c92f6728a8560469e66f4432fabc468d)
* SERVER-68477 add TTLMonitor::onStepUp()Benety Goh2022-10-102-0/+48
| | | | | (cherry picked from commit 3b17e5f7916fdf1a21dd162a079aeb9d06ca9425) (cherry picked from commit 02a6f50be29f295d36a8c86f1e3f6c21587bb04d)
* SERVER-68477 include 'expireAfterSeconds' type information when registering ↵Benety Goh2022-10-108-42/+162
| | | | | | TTL indexes with the TTLCollectionCache (cherry picked from commit cc3ae631bce7943fbda5182ff3b9d93d1125be40)
* SERVER-68477 add unit test for TTLCollectionCacheBenety Goh2022-10-102-0/+92
| | | | (cherry picked from commit f32f550aff1def5709ea68f42dc9d4bf9321d5e6)
* SERVER-64444 SERVER-68477 Add unittests for repairing index specsYuhong Zhang2022-10-101-0/+35
| | | | (cherry-picked from commit a59e32ba3883e46077a750d1f65f383e35ab3e12)
* SERVER-69348 Remove repairDatabase commandSpencer Jackson2022-10-072-36/+0
| | | | | (cherry picked from commit fa534d676f5f673a6a7f3ea656f650ff108b7f92) (cherry picked from commit 49297c3cb0cdae29b0c1da41c6ea802731090a24)
* SERVER-69898 Wait for the critical section catch-up phase before refreshing ↵Antonio Fuschetto2022-10-072-2/+2
| | | | the DB version
* SERVER-69930 Unexpected error message in the logs attempting to refresh the ↵Antonio Fuschetto2022-10-071-2/+1
| | | | version of a dropped database
* SERVER-69380 Avoid swapping meta projection with $_internalUnpackBucket if a ↵Nicholas Zolnierz2022-10-062-1/+50
| | | | | | projection has already been absorbed (cherry picked from commit d1a117a1abc9ead34fc6399697055a46ca0c1df4)
* SERVER-69444 Make the joining of concurrent critical section and refresh ↵Antonio Fuschetto2022-10-062-98/+88
| | | | look the same between DSS and CSS
* SERVER-70160 'Do not push down $match that needs whole documentMilena Ivanova2022-10-051-1/+1
| | | | before $internalUnpackBucket'
* SERVER-66289 Update write size estimation logic in DocumentSourceWriterMihai Andrei2022-10-0414-93/+290
| | | | | (cherry picked from commit 707ba0a0ade42c4540b9cabaaf5a257de944cc3e) (cherry picked from commit c172ccd37516f3c2118f349817cdb1841a2486b9)
* SERVER-69389 Populate shadow collection catalog on clean shutdownGregory Noma2022-10-045-20/+20
| | | | (cherry picked from commit 5457b4527960627071d26310111b29510105d42f)
* SERVER-67385 Range deletion tasks on primary must not be scheduled before ↵Pierlauro Sciarelli2022-10-033-9/+85
| | | | | | ongoing queries finish (cherry picked from commit 32c2f632eaa7bf80607880162ec5e4eaeb22d7fe)
* SERVER-66972 Database critical section does not serialize with ongoing refreshesAntonio Fuschetto2022-10-0312-120/+370
|
* SERVER-64730 Interrupt ongoing refreshes after entering into the critical ↵Sergi Mateo Bellido2022-10-033-6/+12
| | | | | | | section Minor changes to resharding_test_fixture to work with legacy OP_QUERY (cherry picked from commit 343108041c5b3570e97418ee3204804535fbde4d)
* SERVER-68115 Do not drop empty path component from elemMatch path during ↵joshua2022-09-301-14/+6
| | | | index selection
* SERVER-61185 Use WT prefix_search for unique index lookupsLouis Williams2022-09-282-4/+25
| | | | (cherry picked from commits f18bb1e1c2d7bedeb3c08964e6a65bcc794e2a2a and 5923aa87d869a12d40ce605f3aee69d47314aabf)
* SERVER-67538 Make multi-doc txns return WCE on index catalog changesJosef Ahmad2022-09-281-0/+18
| | | | | | | | | | | | | | | | | | | Background: SERVER-47866 stopped bumping the collection's minimum visibility timestamp on catalog changes related to an index; only the index's minimum visibility snapshot continues to be updated. One side effect of this change is that a multi-document transaction can read a at a snapshot where the index is not yet ready and commit at a timestamp when the index is ready, which not intended behaviour and can open the opportunity for a race to happen. This patch introduces a check for the indices' minimum visible timestamp. Attempting to write to an index entry while reading at an incompatible timestamp returns a write conflict exception. Locking rules guarantee that we see a consistent in-memory view of the indices' minimum visible snapshot. (cherry picked from commit a4bd3ce3607d2c3020d7efa3501240ae4b1a1b03) (cherry picked from commit 4e80712214658e3c70cecef42680618068448e7f)
* SERVER-68139: Test resharding success with limited memorynandinibhartiyaMDB2022-09-214-7/+61
| | | | (cherry picked from commit 901ce6eed061d21df66d82ded539d294da6d3de4)
* Import wiredtiger: 05f01e412e34fa7f662026f53cb0fa9fff621a79 from branch ↵Luke Chen2022-09-204-20/+217
| | | | | | | | | mongodb-5.0 ref: ce1d1e58ba..05f01e412e for: 5.0.13 WT-9870 Fix the global time window state before performing rollback to stable (6.0 backport) (#8284) (#8287)
* SERVER-50454 Avoiding sending the "keyValue" field to drivers on duplicate ↵Denis Grebennicov2022-09-166-8/+138
| | | | key error
* SERVER-69590 Fixed clang arm compilesAlexander Neben2022-09-155-15/+7
| | | | | https://github.com/mongodb-forks/libunwind/commit/4e9596735f8f19fcf6afe0b411ce66df5cfb243b This is the commit for the corresponding change to mongo-forks
* SERVER-69108 SCCL can immediately return config and admin metadata without ↵Antonio Fuschetto2022-09-153-0/+57
| | | | triggering a refresh
* SERVER-67653 don't initiate critical section if remainingMillis is omittedAndrew Witten2022-09-142-9/+66
| | | | | | (cherry picked from commit abd6330d793235c8fbc5de7bf3ec53855ebea9d3) SERVER-69693 Use lambda instead of repeating code in resharding coordinator
* SERVER-68094: Use $replaceRoot instead of $projectnandinibhartiyaMDB2022-09-143-45/+86
| | | | (cherry picked from commit 015dc2badcafc3238845b0eec3d6084fdff2545c)