summaryrefslogtreecommitdiff
path: root/src/mongo/db
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-45119 Fix CollectionShardingState::getCurrentShardVersionIfKnown to ↵Kaloian Manassiev2020-04-061-1/+1
| | | | actually return the shard version
* SERVER-32903 Ambiguous field name error should be ignored during initial syncRyan Timmons2020-04-021-0/+2
| | | | | | create mode 100644 jstests/replsets/initial_sync_ambiguous_index.js (cherry picked from commit 3423ca586b88566857f3fcdfeca1c6fdee7a0911)
* SERVER-46834 Use monotonic time in UserCacheInvalidatorShreyas Kalyan2020-04-011-1/+4
|
* SERVER-34199 Remove serverStatus timing section from FTDCMark Benvenuto2020-03-272-2/+19
| | | | (cherry picked from commit a222ef5e647ac527f7d4f8636bcacd6cc0ae6b8e)
* SERVER-45987 Ensure apply op entries for deletes in multi-document ↵Ruoxin Xu2020-03-251-2/+1
| | | | | | transactions only include the document key (cherry picked from commit ed0c0365b4baf8939d39edb766c8ddbbc33187d3)
* Revert "SERVER-46195: Hang secondary before validate command in ↵Xuerui Fa2020-03-201-8/+0
| | | | | | rollback_after_enabling_majority_reads.js" This reverts commit 1909cd159e4b0b3678513c8e3f83286051148b99.
* SERVER-46024 Collect /proc/vmstat swap statistics in FTDCMark Benvenuto2020-03-191-0/+18
| | | | (cherry picked from commit 97e0731610f18576229c322c3a4186202c77c521)
* SERVER-33627: InitialSyncer needs to handle exceptionsLingzhi Deng2020-03-193-7/+40
| | | | (cherry picked from commit 07fe606fcf78e668ee821a93af489f078323851a)
* SERVER-46195: Hang secondary before validate command in ↵Xuerui Fa2020-03-171-0/+8
| | | | rollback_after_enabling_majority_reads.js
* SERVER-46365 Do not trip invariant on FCV check in getMorer4.0.17-rc0r4.0.17Justin Seyster2020-03-091-2/+4
|
* SERVER-45770 add to/from information to moveChunk.to log messageJosef Ahmad2020-03-061-1/+1
| | | | | | | (cherry picked from commit 742ac9b37b1d8f489e1b259a0a3575f8811edac4) Conflicts: src/mongo/db/s/migration_destination_manager.cpp
* SERVER-45363 Base weight for text index on exact match not possible matchTed Tuckman2020-03-051-1/+1
| | | | (cherry picked from commit 4bb2ad4c48c07d267c98f5443e0984a5e1ef7209)
* SERVER-46466 Make session migration destination check out sessionRandolph Tan2020-03-041-13/+23
|
* SERVER-44598 Shards do not treat the IGNORED version as "intended sharded"Kaloian Manassiev2020-03-021-10/+16
| | | | | (cherry picked from commit 7604dad6da718751ad1f04bae1c839e87a1f8651) (cherry picked from commit 5868a00ce71d85b6063489909b5ae79bc7369338)
* SERVER-46001 Move checkShardingIndex outside shardCollection's read critical ↵Cheahuychou Mao2020-02-281-14/+16
| | | | | | section on the primary shard (cherry picked from commit eb81b49551d3fa7763c1a917bf210e497ef5bab7)
* SERVER-45418 Avoid explicitly batching documents in $cursor for count-like ↵David Storch2020-02-272-19/+111
| | | | | | aggregates. (cherry picked from commit 7c4676ef0e8e47cf79e10b81f7661f8fbea82cb0)
* SERVER-35050 Don't abort collection clone due to negative document countMihai Andrei2020-02-272-8/+9
| | | | (cherry picked from commit 5ed5b857aaf2e2fbf443588e9b4cbb359fbd1f4d)
* SERVER-39112 Remove 1-second delays when starting and stopping OplogApplier. ↵Matthew Russotto2020-02-276-8/+74
| | | | Speeds up transition from primary drain mode to a writeable primary.
* SERVER-45599 Backport of SERVER-39495: Move ↵Kaloian Manassiev2020-02-2615-77/+70
| | | | | | | | | | | | | ShardingState::needCollectionMetadata under OperationShardingState ShardingState logically contains answers to questions about whether the current instance is node in a sharded cluster, whereas OperationShardingState is responsible for the 'shardedness' of the commands. This is a partial cherry-pick from b049257fbd1d215388cffaf7544f6741dbce5b45, adapted for the 4.0 branch. Also backports the addition of more testing for multi:true/justOne:false updates and ChangeStreams, which was taken from commit 50f6bd4d6a9428a6f1df22db792d7b55d773762c.
* SERVER-45599 Backport of SERVER-39495: Only return versioned filtering ↵Kaloian Manassiev2020-02-2616-154/+168
| | | | | | metadata for cases that actually need to do filtering This is a partial cherry-pick from 851dad7902d6bb8c3ed25f99f565a2e2c8c8bc47, adapted for the 4.0 branch.
* SERVER-45599 Backport of SERVER-32198: Split ↵Kaloian Manassiev2020-02-2627-440/+512
| | | | | | | | | | | | CollectionShardingState::getMetadata into three methods o getCurrentMetadataIfKnown - which returns the current filtering metadata if any is available o getMetadataForOperation - which returns the metadata which is required by the current opertion, based on the OperationShardingState o getCurrentMetadata - which returns the currently available filtering metadata (or UNSHARDED if not known) This is in preparation for making getMetadataForOperation/getCurrentMetadata throw StaleShardVersion exception if the metadata has not been loaded yet. This is a partial cherry-pick from dcf7e0dd89d34f58b592f1adb3d41e5edd6e2012, adapted for the 4.0 branch.
* SERVER-45178 Always update rollbackId before truncating oplog for ↵Vesselina Ratcheva2020-02-261-4/+5
| | | | | | | | rollback-via-refetch create mode 100644 jstests/replsets/rollback_via_refetch_update_rollback_id_before_oplog_truncation.js (cherry picked from commit 04a2c9acc7ca061fb86736b377b897b11f6c7c48)
* SERVER-45599 Backport of SERVER-32198: Make MetadataManager support an ↵Kaloian Manassiev2020-02-2616-328/+409
| | | | | | 'UNKNOWN' filtering metadata state This is partial cherry-pick of the changes done under 20117b8ee9678794be675eb4d728bfcc8f9d75f4 to make the 4.0 logic match that of 4.2.
* SERVER-42219 Make sure oplog buffer is empty when primary exits drain mode.Siyuan Zhou2020-02-262-9/+60
| | | | (cherry picked from commit 883b10b38ddd7aa5b9a197688141ebf387292a07)
* SERVER-42219 Remove logging death test of signalDrainComplete.Siyuan Zhou2020-02-262-48/+0
| | | | | | Reverted a5cbd93aea SERVER-32935 add characterization test for exception handling in oplog application loop (cherry picked from commit 89a6d7bc3a0126cf8bfd177ad65b233181641175)
* SERVER-46238 Transaction will abort properly when expiring in the middle of ↵Jason Chan2020-02-252-5/+18
| | | | commitTransaction
* SERVER-34768 Sync source's optime cannot be behind the syncing node even if ↵Siyuan Zhou2020-02-102-0/+25
| | | | | | | | chaining is disabled. (cherry picked from commit 319757ebb72611fb91044a2a81d1b77a6f3729c1) SERVER-46050 Use getLastAppliedOpTime rather than getHeartbeatAppliedOpTime for checking primary's position.
* SERVER-42573 Only warn about enableReadConcernMajority if PSA architectureXuerui Fa2020-02-043-2/+15
| | | | (cherry picked from commit 897ebf0eb55ffc68ef4c09aefc43a48bca82df3d)
* SERVER-44435 Allow selective whitelisting of X509 based role authorizationsSara Golemon2020-02-033-0/+87
| | | | | | | | | | (cherry picked from commit b99fbe5f80f4368e1916e1bfbf3d195276ace5c7) create mode 100644 jstests/ssl/tlsCATrusts.js create mode 100644 jstests/ssl/x509/root-and-trusted-ca.pem create mode 100644 jstests/ssl/x509/trusted-client-testdb-roles.pem create mode 100644 src/mongo/db/auth/auth_types.idl create mode 100644 src/mongo/util/net/ssl_parameters.idl
* Revert "SERVER-45599 Backport of SERVER-32198: Make MetadataManager support ↵Kaloian Manassiev2020-01-2916-409/+328
| | | | | | an 'UNKNOWN' filtering metadata state" This reverts commit e4e052a10484cf2cc44c62c377db4ece8162820a.
* Revert "SERVER-45599 Backport of SERVER-32198: Split ↵Kaloian Manassiev2020-01-2927-512/+440
| | | | | | CollectionShardingState::getMetadata into three methods" This reverts commit a414e4ceafb45dc6ebf4daeb9198f0a7f3fb189c.
* Revert "SERVER-45599 Backport of SERVER-39495: Only return versioned ↵Kaloian Manassiev2020-01-2916-168/+154
| | | | | | filtering metadata for cases that actually need to do filtering" This reverts commit fe4ced8f98d731883e5a4511d434716629e457a8.
* Revert "SERVER-45599 Backport of SERVER-39495: Move ↵Kaloian Manassiev2020-01-2915-70/+77
| | | | | | ShardingState::needCollectionMetadata under OperationShardingState" This reverts commit 1a01c53df8f7c1e016c0ccbc38b77f6b3508bf65.
* Revert "SERVER-44598 Shards do not treat the IGNORED version as "intended ↵Kaloian Manassiev2020-01-291-16/+10
| | | | | | sharded"" This reverts commit f2eee7f4879a0dda72b281c8d1d25f2afc4c5eb7.
* Revert "SERVER-43910 BasicCommand::Invocation sets LockManager DebugInfo"Benety Goh2020-01-291-1/+0
| | | | This reverts commit 41981ad8d67b3fc95da21506751cc5d284e724e1.
* SERVER-45289 Fix uninitialized variable in the validate adaptorGregory Wlodarek2020-01-281-1/+1
| | | | (cherry picked from commit 9e27158084512a69c66421c951456dab9da768aa)
* SERVER-45761 Use same clock for test and working code in session_test [v4.0]Matthew Russotto2020-01-271-12/+6
|
* SERVER-44598 Shards do not treat the IGNORED version as "intended sharded"Marcos José Grillo Ramírez2020-01-271-10/+16
| | | | | (cherry picked from commit 7604dad6da718751ad1f04bae1c839e87a1f8651) (cherry picked from commit 5868a00ce71d85b6063489909b5ae79bc7369338)
* SERVER-45599 Backport of SERVER-39495: Move ↵Kaloian Manassiev2020-01-2615-77/+70
| | | | | | | | | | | | | ShardingState::needCollectionMetadata under OperationShardingState ShardingState logically contains answers to questions about whether the current instance is node in a sharded cluster, whereas OperationShardingState is responsible for the 'shardedness' of the commands. This is a partial cherry-pick from b049257fbd1d215388cffaf7544f6741dbce5b45, adapted for the 4.0 branch. Also backports the addition of more testing for multi:true/justOne:false updates and ChangeStreams, which was taken from commit 50f6bd4d6a9428a6f1df22db792d7b55d773762c.
* SERVER-45599 Backport of SERVER-39495: Only return versioned filtering ↵Kaloian Manassiev2020-01-2616-154/+168
| | | | | | metadata for cases that actually need to do filtering This is a partial cherry-pick from 851dad7902d6bb8c3ed25f99f565a2e2c8c8bc47, adapted for the 4.0 branch.
* SERVER-45599 Backport of SERVER-32198: Split ↵Kaloian Manassiev2020-01-2527-440/+512
| | | | | | | | | | | | | | | | | CollectionShardingState::getMetadata into three methods o getCurrentMetadataIfKnown - which returns the current filtering metadata if any is available o getMetadataForOperation - which returns the metadata which is required by the current opertion, based on the OperationShardingState o getCurrentMetadata - which returns the currently available filtering metadata (or UNSHARDED if not known) This is in preparation for making getMetadataForOperation/getCurrentMetadata throw StaleShardVersion exception if the metadata has not been loaded yet. This is a partial cherry-pick from dcf7e0dd89d34f58b592f1adb3d41e5edd6e2012, adapted for the 4.0 branch.
* SERVER-45758 Add sleep to TimeInactiveMicrosShouldBeSetUponUnstashAndStash ↵Matthew Russotto2020-01-241-0/+8
| | | | in session_test
* SERVER-45279 GranularityRounder rounding infinity case no longer causes ↵Ian Boros2020-01-242-2/+16
| | | | | | infinite loop (cherry picked from commit a028f3c1888ecb35cd99435658f875b0963ed2f7)
* SERVER-38794 do not std::move an object that can be reused in a WCE loopEric Milkie2020-01-241-1/+1
| | | | (cherry picked from commit 5c52ffdd0af3a5033f2767c48def88447517e301)
* SERVER-45599 Backport of SERVER-32198: Make MetadataManager support an ↵Kaloian Manassiev2020-01-2416-328/+409
| | | | | | 'UNKNOWN' filtering metadata state This is partial cherry-pick of the changes done under 20117b8ee9678794be675eb4d728bfcc8f9d75f4 to make the 4.0 logic match that of 4.2.
* SERVER-45152 Match master negation of null behavior for consistencyr4.0.15-rc0r4.0.15Jacob Evans2020-01-161-3/+19
|
* SERVER-45472 Ensure RoleGraph can serialize authentication restrictions to BSONSpencer Jackson2020-01-152-1/+44
| | | | | (cherry picked from commit 521e56b407ac72bc69a97a24d1253f51a5b6e81b) (cherry picked from commit a10d0a22d5d009d27664967181042933ec1bef36)
* SERVER-45152 Clean up git merge to unit test furtherJacob Evans2020-01-151-12/+8
|
* SERVER-45152 Clean up git merge to unit testJacob Evans2020-01-151-1/+1
|
* SERVER-45152 Demote invariant to massert to prevent server crashesJacob Evans2020-01-152-3/+32
|