summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-36503 Skip dry run during election handoffVesselina Ratcheva2018-09-121-1/+1
| | | | (cherry picked from commit b19e39088cf8754186de8f5f3f1dae17a12aaa4c)
* SERVER-34682 Old primary should be able to store last vote when casting vote ↵William Schultz2018-05-161-1/+4
| | | | | | | | | | | | | | | | | | in new term This patch allows a current primary to step down and cast its vote for a new primary in a higher term in one step. This allows for a new candidate to become elected faster if it relies on the vote of an old primary. Previously, when learning of a higher term via a replSetRequestVote request, a primary would step down, causing us to interrupt the processing of the vote request when we try to acquire a lock to write down our LastVote document with an InterruptedDueToReplStateChange code. This patch allows us to ignore these interrupts, so we can proceed with processing the vote request. Additionally, this patch also asserts that the vote response is actually ok, so that we don't erroneously send a voteGranted=yes response even if we failed to persist our last vote document.
* SERVER-34580 Plumb commit time to commit handlers when availableJudah Schvimer2018-05-031-15/+0
|
* SERVER-34372 add ↵Benety Goh2018-04-171-0/+5
| | | | ReplicationCoordinator::signalDropPendingCollectionsRemovedFromStorage()
* SERVER-31802 Rip out more dead master-slave code, and the related concept of ↵Andy Schwerin2018-03-151-32/+7
| | | | RID.
* SERVER-31802 SERVER-31239 Remove master-slave replication and resync command.Andy Schwerin2018-03-131-10/+0
|
* SERVER-32776 ReplicationCoordinator::prepareReplMetadata no longer requires ↵Benety Goh2018-02-131-2/+1
| | | | | | | OperationContext The OperationContext was previously used to retrieve the rollback ID from the ReplicationProcess.
* SERVER-32284 rename ReplicationCoordinator::reserveSnapshotName() to ↵Benety Goh2018-01-171-2/+2
| | | | getMinimumVisibleSnapshot()
* SERVER-32284 remove unused last snapshot support from ReplClientInfoBenety Goh2018-01-171-3/+2
|
* SERVER-32284 remove ReplicationCoordinator::awaitReplicationOfLastOpForClient()Benety Goh2018-01-171-7/+0
|
* SERVER-28895 Remove old form of replSetUpdatePosition commandVesselina Ratcheva2017-12-131-13/+1
|
* SERVER-30577 Don't update the stable timestamp if database is in an ↵William Schultz2017-11-211-6/+21
| | | | inconsistent state
* SERVER-31304: Refactor away SnapshotName.Daniel Gottlieb2017-11-211-11/+3
|
* SERVER-32006 add a parameter to wait before secondaries perform noop writeMisha Tyulenev2017-11-171-0/+10
|
* SERVER-30638 change setReadFromMajorityCommittedSnapshot to use timestamps ↵Eric Milkie2017-10-051-8/+0
| | | | instead of named snapshots
* SERVER-28545 Do not wait for election to finish while holding global lockSpencer T Brody2017-06-281-2/+3
|
* SERVER-28545 Change ReplicationCoordinator::setFollowerMode to return a ↵Spencer T Brody2017-06-281-2/+2
| | | | Status instead of a bool
* SERVER-29264 Kill off rpc::RequestInterfaceMathias Stearn2017-06-071-1/+0
|
* SERVER-29274 move oplogDisabled from oplog.cpp to ReplicationCoordinatorBenety Goh2017-05-231-0/+6
|
* Revert "SERVER-29274 move oplogDisabled from oplog.cpp to ↵Benety Goh2017-05-231-6/+0
| | | | | | ReplicationCoordinator" This reverts commit c1b1bd0944115c30b18bfe189356897e8896012f.
* SERVER-29274 move oplogDisabled from oplog.cpp to ReplicationCoordinatorBenety Goh2017-05-231-0/+6
|
* SERVER-27659 Persist Rollback IdJudah Schvimer2017-04-281-12/+2
|
* Revert "SERVER-27659 Persist Rollback Id"ADAM David Alan Martin2017-04-281-2/+12
| | | | This reverts commit ac6f185017f76cc7124373e97a2c55291d5c8956.
* SERVER-27659 Persist Rollback IdJudah Schvimer2017-04-211-12/+2
|
* SERVER-26848 Exit catchup mode when not syncing more data.Siyuan Zhou2017-04-201-0/+5
| | | | This reverts commit c08590a6ac9dc54c9d910822d47ea17140b56f89.
* Revert "SERVER-26848 Exit catchup mode when not syncing more data."Robert Guo2017-04-201-5/+0
| | | | This reverts commit d0c851e2f4bfea514e22c97af1838640d2849a8c.
* SERVER-26848 Exit catchup mode when not syncing more data.Siyuan Zhou2017-04-191-0/+5
|
* SERVER-28624 Further reduce dependency on ReplicationExecutor type.Andy Schwerin2017-04-061-6/+5
| | | | | | * Replace getDiagnosticString() with appendDiagnosticBSON() in TaskExecutors. * Introduce appendDiagnostics to ReplicationCoordinator, to hide the implementation detail that ReplicationCoordinatorImpl has a TaskExecutor.
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-28/+29
| | | | | | 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-27914 Verify canAcceptWritesForDatabase() is called while the caller ↵Matthew Russotto2017-03-061-3/+26
| | | | | | holds the global lock This reverts commit 3e5314c3f2be49666ca5d7aa766c934ba7d6cbe9.
* Revert "SERVER-26965 Use RAII type for turning off replicated writes."Matthew Russotto2017-03-061-26/+3
| | | | This reverts commit befb3ab22daa1f6e0db54af4caa426cfca1b7cd2.
* SERVER-27995 make repl_set* naming convention consistentJudah Schvimer2017-03-061-3/+3
|
* SERVER-26965 Use RAII type for turning off replicated writes.Matthew Russotto2017-03-061-3/+26
|
* SERVER-27120 Increase synchronization between producer/applier threads and ↵Siyuan Zhou2017-02-271-9/+59
| | | | | | stepdown/stepup SERVER-27913 Make sure the last applied hash is corresponding to the last applied optime in bgsync start()
* SERVER-27543 Process OplogQueryMetadata with backwards and forwards ↵Judah Schvimer2017-02-151-4/+9
| | | | compatibility
* SERVER-27828: Pass ServiceContext to oplog and ReplicationCoordinator ↵Misha Tyulenev2017-02-081-0/+2
| | | | methods that will use LogicalClock
* SERVER-27807 synchronize creating a snapshot with its registration in replcoordEric Milkie2017-01-251-2/+5
| | | | | | | This commit prevents a race between creating a snapshot in the storage engine and registering it in the replication coordinator. The replication coordinator maintains a vector of outstanding snapshots, and it needs to stay in sync with the actual snapshots in the storage engine. The replication coordinator mutex is used to ensure this synchronization.
* SERVER-27543 send OplogQueryMetadata with OplogFetcher queriesJudah Schvimer2017-01-201-3/+5
|
* SERVER-27123 Only update the commit point as a secondary from oplog queries ↵Spencer T Brody2017-01-041-7/+6
| | | | against your sync source
* SERVER-26202 Relax index constraints in oplog applicationSiyuan Zhou2016-11-081-3/+5
| | | | This reverts commit d23e79eb9e69bd746416d9f674dfaee59457c887.
* Revert "SERVER-26202 Relax index constraints in oplog application"Siyuan Zhou2016-11-061-5/+3
| | | | This reverts commit f00448255bbb24c07e2f55e7e229f19e316350a6.
* SERVER-26202 Relax index constraints in oplog applicationSiyuan Zhou2016-11-041-3/+5
|
* SERVER-26640 remove flag for linearizable read supportBenety Goh2016-10-141-5/+0
| | | | | | Revert "SERVER-26169 added startup parameter for linearizable read support defaulting to disabled" This reverts commit 7f6eb7f2361addf3f75308bf1603caa8cdc71b68.
* SERVER-26169 added startup parameter for linearizable read support ↵Benety Goh2016-09-281-0/+5
| | | | defaulting to disabled
* SERVER-23476: restart initialsync/resync if replSetSyncFrom is calledScott Hernandez2016-08-181-1/+3
|
* SERVER-25125 Report initial sync progress in ReplSetGetStatusJudah Schvimer2016-08-161-2/+6
|
* Revert "SERVER-25125 Report initial sync progress in ReplSetGetStatus"Judah Schvimer2016-08-151-6/+2
| | | | This reverts commit 10ff598752d57650783c63166180df31f907df12.
* SERVER-25125 Report initial sync progress in ReplSetGetStatusJudah Schvimer2016-08-151-2/+6
|
* SERVER-23476: wire resync back upScott Hernandez2016-08-111-4/+5
|
* SERVER-23663 New primary syncs from chosen node to catch up with timeoutSiyuan Zhou2016-08-041-0/+6
| | | | SERVER-23662 Implement "catch-up timeout" configuration variable