summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-40080 report last applied and last durable wall clock timesMaria van Keulen2019-03-191-3/+2
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-33135 Remove metadata accessors from command reply APIsMathias Stearn2018-07-301-9/+2
| | | | | Now that OP_COMMAND is dead, all remaining implementations return the same BSONObj for data and metadata.
* SERVER-36051 Code cleanup for pv1 heartbeat response message parser.Suganthi Mani2018-07-271-0/+2
|
* SERVER-36050 Remove isV1ElectionProtocol() check.Suganthi Mani2018-07-271-3/+3
|
* SERVER-31963 Remove heartbeat support for pv0.Suganthi Mani2018-06-281-22/+0
|
* SERVER-34798 Remove ServiceContext subclasses and use new ServiceContext in ↵Andy Schwerin2018-06-221-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* SERVER-34895 only set stable timestamp to timestamps in oplogJudah Schvimer2018-05-151-2/+2
|
* SERVER-32144 Remove test coverage for replication protocol version 0Vesselina Ratcheva2018-03-131-68/+1
| | | | This reverts commit c5a4250a649ab0afb4ecdf227d4a0400f9e68786.
* Revert "SERVER-32144 Remove test coverage for replication protocol version 0"Vesselina Ratcheva2018-03-091-1/+68
| | | | This reverts commit d05e04551b7e399a5554858de48541ae11988b10.
* SERVER-32144 Remove test coverage for replication protocol version 0Vesselina Ratcheva2018-03-091-68/+1
|
* SERVER-30626 Remove TopologyCoordinator interface.Matthew Russotto2017-11-281-3/+3
|
* SERVER-29946 Increase heartbeat rate when a secondary has no sync sourceSiyuan Zhou2017-11-211-11/+21
|
* SERVER-31350: Make enableMajorityReadConcern a noopDaniel Gottlieb2017-10-201-1/+0
|
* SERVER-31330 Prevent stepdown during drain mode from triggering an invariantSpencer T Brody2017-10-041-2/+26
|
* SERVER-29893 Rename recovery code and make it accessible to both startup and ↵Judah Schvimer2017-08-101-4/+6
| | | | rollback
* Revert "SERVER-29893 Rename recovery code and make it accessible to both ↵Mathias Stearn2017-08-071-6/+4
| | | | | | startup and rollback" This reverts commit 8fa770baf8fac6e71a45f84b48eeb3bae96a8dab.
* SERVER-29893 Rename recovery code and make it accessible to both startup and ↵Judah Schvimer2017-08-071-4/+6
| | | | rollback
* SERVER-30184 Call setInitialDataTimestamp at the end of processing ↵Judah Schvimer2017-07-251-5/+5
| | | | replSetInitiate
* SERVER-29254 Moved MinValid into ReplicationProcessJudah Schvimer2017-05-301-1/+5
|
* SERVER-28865 Replace ReplicationExecutor with ThreadPoolTaskExecutor in ↵Andy Schwerin2017-05-181-8/+11
| | | | ReplicationCoordinatorImpl.
* SERVER-28988 add ReplicationProcessBenety Goh2017-04-281-0/+6
| | | | | | | This class is intended to hold replication state in a secondary node related to the copying and applying operations from the sync source. This initial implementation holds a cached copy of the rollback ID only.
* SERVER-26848 Remove dead code of primary catch-up.Siyuan Zhou2017-04-201-4/+0
| | | | This reverts commit fac33fe5a6814169c9c6131d80f1b325c74647da.
* SERVER-26848 Exit catchup mode when not syncing more data.Siyuan Zhou2017-04-201-10/+12
| | | | This reverts commit c08590a6ac9dc54c9d910822d47ea17140b56f89.
* Revert "SERVER-26848 Exit catchup mode when not syncing more data."Robert Guo2017-04-201-12/+10
| | | | This reverts commit d0c851e2f4bfea514e22c97af1838640d2849a8c.
* Revert "SERVER-26848 Remove dead code of primary catch-up."Robert Guo2017-04-201-0/+4
| | | | This reverts commit 7109d453e5a264ba77093b9b068d1eaa056ec837.
* SERVER-26848 Remove dead code of primary catch-up.Siyuan Zhou2017-04-191-4/+0
|
* SERVER-26848 Exit catchup mode when not syncing more data.Siyuan Zhou2017-04-191-10/+12
|
* SERVER-28624 Replace references to ReplicationExecutor with TaskExecutor.Andy Schwerin2017-04-181-5/+6
| | | | | | | This change replaces, wherever possible, references to the concrete type ReplicationExecutor with references to the interface type TaskExecutor, and eliminates the repl::ResponseStatus typedef, with an eye toward eventually replacing ReplicationExecutor with another implementation.
* SERVER-28565 Do not return logicalTime on non-sharded RSJack Mulrow2017-04-181-3/+1
|
* SERVER-28719 Use a rescheduling fail point instead of blocking on a ↵Andy Schwerin2017-04-101-3/+5
| | | | condition variable in some unit tests.
* SERVER-28432 Move key management out from TimeProofServiceJack Mulrow2017-03-301-3/+1
|
* SERVER-27749 Integrate LogicalTimeMetadataRandolph Tan2017-03-071-2/+1
| | | | Attach logical time metadata to all outgoing messages and process incoming logical time metadata in mongod
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-10/+10
| | | | | | This commit is an automated rename of all whole word instances of txn, _txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all .cpp and .h files in src/mongo.
* SERVER-27995 make repl_set* naming convention consistentJudah Schvimer2017-03-061-9/+9
|
* SERVER-27768 Implement HMAC key for signing Logical clock's storage & ↵Jack Mulrow2017-03-021-1/+3
| | | | distribution
* SERVER-27120 Increase synchronization between producer/applier threads and ↵Siyuan Zhou2017-02-271-4/+5
| | | | | | stepdown/stepup SERVER-27913 Make sure the last applied hash is corresponding to the last applied optime in bgsync start()
* SERVER-28075 Wait for DB works in simulateSuccessfulV1ElectionAt()Siyuan Zhou2017-02-241-0/+5
|
* SERVER-27746: Integrate LogicalClock with oplogMisha Tyulenev2017-02-151-0/+7
|
* SERVER-27828: Pass ServiceContext to oplog and ReplicationCoordinator ↵Misha Tyulenev2017-02-081-5/+5
| | | | methods that will use LogicalClock
* SERVER-27800 Change ReplicationCoordinatorImpl and ReplicationExecutor ↵Andy Schwerin2017-01-251-5/+12
| | | | | | | | | | | constructors to take owned objects by unique_ptr The constructors of ReplicationCoordinatorImpl and ReplicationExecutor predate C++11 support in the MongoDB codebase, and so receive bare pointers to objects that they actually own. This patch is to changes the constructors and some of the associated test infrastructure to transfer ownership by passing unique_ptr, as in more modern components.
* SERVER-27490 Stop consulting storage engine isDurable flag in ↵Andy Schwerin2017-01-071-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | ReplicationCoordinatorImpl ... and simplify ReplCoordTestFixture ReplicationCoordinatorImpl consults the storage engine's isDurable flag for two purposes: 1. To choose whether to present the durable or applied optime when standing for election in pv1 2. To decide how to interpret w:majority without an explicit j field when waiting for write concern. In the first case, it is unnecessary to choose which optime to apply based on the isDurable flag. It is always safe and correct to present the applied optime, because if the node presenting it wins election, it will attempt to commit that applied optime. That means that voters may safely vote for that node. In the second case, using the value of the local node's storage engine's isDurable flag to adjust the meaning of w:majority is out of spec. Whether w:majority writes wait for journaling is a function only of the writeConcernMajorityJournalDefault flag when a write concern omits the "j" field. This patch removes the unnecessary consultation of the isDurable flag, and uses the opportunity to simplify the constructor of ReplicationCoordinatorImpl and its test fixture.
* SERVER-23759 wait for repl startup before shutting downEric Milkie2016-12-131-1/+1
|
* SERVER-26748 Don't call for priority takeover when repl lagged.Spencer T Brody2016-11-011-6/+10
|
* SERVER-26305 Use interruptible condition variables in ↵Andy Schwerin2016-10-131-0/+4
| | | | | | | | ReplicationCoordinatorImpl instead of KillOpListener While this change also improves the readability of _awaitReplication_inlock and stepDown, it resovles SERVER-26305 by breaking a deadlock cycle caused by the fact that KillOpListener methods get run under a mutex in ServiceContext.
* Revert "SERVER-26305 Use interruptible condition variables in ↵Benety Goh2016-10-061-4/+0
| | | | | | ReplicationCoordinatorImpl instead of KillOpListener" This reverts commit 360d6ae39305dbc2f41ca7e0bfd424081fd4f030.
* SERVER-26305 Use interruptible condition variables in ↵Andy Schwerin2016-10-051-0/+4
| | | | | | | | ReplicationCoordinatorImpl instead of KillOpListener While this change also improves the readability of _awaitReplication_inlock and stepDown, it resovles SERVER-26305 by breaking a deadlock cycle caused by the fact that KillOpListener methods get run under a mutex in ServiceContext.
* SERVER-23663 New primary syncs from chosen node to catch up with timeoutSiyuan Zhou2016-08-041-0/+32
| | | | SERVER-23662 Implement "catch-up timeout" configuration variable
* SERVER-23750: Connect StorageInterface to ReplicationCoordinatorImplScott Hernandez2016-06-301-2/+11
|