summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-44053 Rename blocking sort memory limit to ↵David Storch2019-10-232-7/+9
| | | | "internalQueryMaxBlockingSortMemoryUsageBytes".
* SERVER-44121 MultiIndexBlock::drainBackgroundWrites() accepts drain yield policyBenety Goh2019-10-222-3/+10
|
* SERVER-43937 Allow MockDBClientConnection/MockDBServer to mock errors.Matthew Russotto2019-10-184-23/+31
|
* SERVER-43272 Implement getDatabaseInfos method (listDatabases) in DBClientVesselina Ratcheva2019-10-171-0/+57
|
* SERVER-43858: Relax database creation lock acquisition from MODE_X to MODE_IX.Daniel Gottlieb2019-10-172-17/+3
|
* SERVER-43399 Log more in DeleteOpIsIdBased testA. Jesse Jiryu Davis2019-10-161-20/+20
| | | | Also clean up unused function in repltests.cpp.
* SERVER-43908 Modify IndexConsistency hash-map keys to avoid hitting an ↵Gregory Wlodarek2019-10-151-0/+144
| | | | invariant on duplicate index keys in KeyString form for different indexes
* SERVER-43885 Rename OplogApplierImpl methodsMihai Andrei2019-10-141-18/+19
|
* SERVER-36723 Push $limit beneath DocumentSourceCursor into the PlanStage layer.David Storch2019-10-101-35/+0
| | | | | | | | | | | | | In addition towards working towards the general goal of doing as much query execution as possible with a PlanStage tree, this should have a positive performance impact for certain agg pipelines. Previously, a pipeline with a $project (or a $project-like stage such as $addFields) followed by a $limit might have applied this limit only after a full batch of data was loaded by DocumentSourceCursor. After this change, the limit will take effect prior to DocumentSourceCursor batching, and thus may reduce the amount of data processed by the query.
* SERVER-42560 Simplify passing of metadata between DocumentSource and PlanStageIan Boros2019-10-103-93/+131
|
* SERVER-42998 Make multiSyncApply non-configurableMihai Andrei2019-10-101-34/+76
|
* SERVER-39002 write abortIndexBuild oplog entry in same WUOW as index build ↵Benety Goh2019-10-091-0/+85
| | | | cleanup
* SERVER-39002 MultiIndexBlock::cleanUpAfterBuild() accepts a post-catalog ↵Benety Goh2019-10-085-10/+27
| | | | update callback
* SERVER-43273 Add UUID support to count and getIndexSpecs in DBClientVesselina Ratcheva2019-10-079-42/+111
|
* SERVER-43015 ReplicaSetMonitor should timeout waiters upon rescanBen Caimano2019-10-041-184/+0
|
* SERVER-43317 merge failpoint headers. Rewrite docs.Billy Donahue2019-10-032-3/+1
| | | | iterate docs
* SERVER-43651 Move fillWriterVectors, multiSyncApply, and syncApply to ↵Mihai Andrei2019-10-022-8/+6
| | | | OplogApplierImpl
* SERVER-43367 unittest framework refactor/fixesBilly Donahue2019-10-0236-158/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Segregate old-style dbtests into their own Suite initialization system: OldStyleSuiteSpecification. This is where the funky deprecated features can live on without interfering with the Suite API. It also gives us a searchable base class to identify them in the future. OldStyleSuite has `setupTests()` and an `add<T>()` that Suite does not have. Suite API can shrink when it doesn't have to support these dbtest adaptor features. Suite only needs non-template `add(name, callback)`. - Add OldStyleSuiteInitializer to some dbtests that were missing it! These didn't use SuiteInstance to register themselves and were incorrect. They would self register, resulting in _allSuites() holding a std::shared_ptr to a static-duration Suite object! - Change `getSuite()` to return `Suite&` instead of `Suite*`. - No more "self-registering" in Suite constructor. Registration must be done as a separate post-construction step. This removes some unusual lifetime management code and is easier to document. Suite::getSuite(name) is the only way to make a Suite, and it does the make_shared and registration calls with a pseudo-private ConstructorEnable idiom. - Suite->run() returns std::unique_ptr<Result> instead of raw `Result*`. It's virtual to support OldStyleSuite behavior. - Suite._ran does nothing. Removed. - Result.cur does nothing. Removed. - Switch to pass-by-value and std::move for most ctor args. - Add explicit on 1-arg ctors. - Get rid of TestHolder. It's just a 2-field struct. - use fmt instead of snprintf - TEST and TEST_F macros: generate TEST_TYPE once. - TEST and TEST_F macros: inline the _agent variable. - Mark _doRun as `override`. - Terminology: replace CASE_NAME with SUITE_NAME. - rename DeathTestImpl -> DeathTestBase - move getDeathTestPattern into the test as a static member function - refactor out some repetition from the comparator decl macros - use if-constexpr and diamond relops to clean up the ComparisonAssertion class. - dbtests: conditionally skip some add<T> calls - further dedup (DEATH_)TEST(_F) macros
* SERVER-42974 Validate should work with KeyString instead of BSON where possibleGregory Wlodarek2019-10-011-61/+0
|
* SERVER-42182 Reimplement SortStage in terms of SortExecutor.David Storch2019-10-011-6/+18
| | | | | | | | This consolidates the implementations of DocumentSourceSort and SortStage to both use the same underlying sort execution code. It also allows a future change to expose external sort for find command (which currently requires 'enableTestCommands=true').
* SERVER-43691 Make repltests.cpp tests independentA. Jesse Jiryu Davis2019-10-011-5/+5
|
* SERVER-42302 Move Document/Value library to db/exec/document_value directory.David Storch2019-10-013-9/+9
| | | | | | Document/Value is now used throughout the query execution engine, and therefore should move into the directory which holds query execution code.
* SERVER-43323 All replicated index builds should write startIndexBuildLouis Williams2019-09-301-2/+10
| | | | | | | and commitIndexBuild oplog entries This emits the two-phase oplog entries in cloner.cpp, system_index.cpp and index_builder.cpp.
* SERVER-41496 Remove Database::getCollection() and replace with ↵Evgeni Dobranov2019-09-3014-63/+65
| | | | CollectionCatalog::get().lookupCollectionByNamespace()
* SERVER-43344 Move shutdown, multiApply, and scheduleWritesToOplog from ↵Mihai Andrei2019-09-301-7/+13
| | | | SyncTail to OplogApplierImpl
* SERVER-42649 Disambiguate Value constructorJustin Seyster2019-09-271-7/+7
| | | | | | | | | | | | | | The Xcode 10.2 Clang considers {Value(), Value()} constructors to be ambiguous: src/mongo/dbtests/query_stage_sort_key_generator.cpp:137:11: error: call to constructor of 'mongo::Value' is ambiguous Value expectedOut({Value(99), Value(16)}); ^ ~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value.h:103:14: note: candidate constructor explicit Value(const std::string& value) : _storage(String, StringData(value)) {} ^ src/mongo/db/pipeline/value.h:109:14: note: candidate constructor explicit Value(std::vector<Value> vec) This patch uses an explicit std::vector<Value> constructor to fix macOS compiles.
* SERVER-42649 Use Value instead of BSONObj in the in-memory sort keyJustin Seyster2019-09-266-99/+84
|
* SERVER-42524 remove the touch commandHaley Connelly2019-09-251-20/+0
|
* SERVER-43203 remove dbtests that were not runJudah Schvimer2019-09-241-30/+0
|
* SERVER-42165 Replace uses of stdx::mutex with mongo::MutexBen Caimano2019-09-175-12/+12
|
* SERVER-42583 Thread 'tempDir' through to SortStage.David Storch2019-09-131-20/+17
| | | | | This makes it possible to instantiate a SortExecutor inside SortStage.
* SERVER-42979 Implement WorkingSet::extract() and WorkingSet::emplace().David Storch2019-09-131-7/+10
| | | | | | | | Also replaces WorkingSetMember::isSuspicious with a scheme that associates a snapshot id with every index key. This is needed because extracted WorkingSetMembers are not discoverable from the WorkingSet, and thus cannot be marked as suspicious in preparation for yield.
* SERVER-42357 Periodically release locks during collection validation and ↵Gregory Wlodarek2019-09-131-9/+5
| | | | check for interrupts
* SERVER-42357 Add additional state to the IndexCatalogEntry to track when it ↵Gregory Wlodarek2019-09-131-0/+50
| | | | is dropped
* SERVER-42981 Make WorkingSetMember compatible for use with the Sorter.David Storch2019-09-121-7/+7
| | | | | | | | The bulk of this change is to implement serialization and deserialization routines for WorkingSetMember, so that the Sorter can spill WorkingSetMembers to disk. In addition, this changes the SortExecutor to sort WorkingSetMembers internally as opposed to sorting Documents.
* SERVER-42995 Remove redundant SyncTail methodsMihai Andrei2019-09-121-1/+4
|
* SERVER-43149 rename across dbs emits startIndexBuild and commitIndexBuild ↵Benety Goh2019-09-081-26/+16
| | | | oplog entries
* SERVER-42287 SNI names are not allowed to include IP addressesAdam Cooper2019-09-061-0/+11
|
* SERVER-43054 Remove RecordId argument from insert and unindex functions on ↵Louis Williams2019-09-051-3/+3
| | | | SortedDataInterface
* SERVER-23921 audit the use of SortedDataInterface::Cursor::seek for full ↵Haley Connelly2019-09-042-2/+2
| | | | index traversal in our tests
* SERVER-42852 Make PlanStage consistently hold children by unique_ptr.David Storch2019-09-0411-140/+146
|
* SERVER-42589 Made the wall field in oplog_entry.idl a required fieldXuerui Fa2019-09-042-52/+59
|
* SERVER-42993 Convert static oplog application funcs to free funcsA. Jesse Jiryu Davis2019-09-041-5/+5
|
* SERVER-42039 Remove redundant OplogApplier optionsA. Jesse Jiryu Davis2019-09-041-3/+1
|
* SERVER-42223 Use checkpoint cursors for collection validation when ↵Dianna Hohensee2019-09-031-32/+91
| | | | {background:true} is requested
* SERVER-43023 IndexBuildsCoordinator emits startIndexBuild oplog entry at the ↵Benety Goh2019-09-011-1/+4
| | | | | | beginning of an index build This replaces the 'n' (no-op) oplog entry with the message "Creating indexes. Coll: (nss)".
* SERVER-42181 Make WorkingSetMember hold Document instead of BSONObjMartin Neupauer2019-08-2915-48/+51
| | | | SERVER-42157 Unowned mode for Document/Value
* SERVER-42248 Remove SortedDataInterface::seek() which accepts a BSONObjXiangyu Yao2019-08-292-3/+13
|
* SERVER-43051 Add additional logging in validate_tests to help diagnose ↵Gregory Wlodarek2019-08-271-38/+78
| | | | failed collection validation assertions
* Revert "SERVER-33272 Proactively close newly empty databases"Gregory Wlodarek2019-08-272-15/+1
| | | | This reverts commit 40f226b5a9bfb4863268334d287a46fb226a22cf.