-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: Backlog
-
Component/s: Replication
-
None
-
Fully Compatible
-
Repl 2017-08-21, Repl 2017-09-11
-
0
Currently, when we rename across databases, a problem arises with rollback when we are trying to refetch a document in a collection that has been renamed across databases. Even if we are querying by UUID's, because the collection has been copied into another database, this action makes the UUID of the collection to change. Thus, although the document does exist, just under a different namespace and UUID, we will not be able to refetch it during rollback. This leads to data corruption between the sync source and rolling back node.
A fix for this would be to make the oplog entry for renameCollection a set of create, insert and delete oplog entries instead of a singular oplog entry. This means that even if during rollback, we cannot refetch the document by UUID, when the node has transitioned out of roll back state and into secondary state, we can apply the insertions and maintain consistency.
- depends on
-
SERVER-30900 remove collMod writeConcern argument from ReplSetTest.checkReplicaSet()
- Closed
-
SERVER-30908 ReplSetTest.checkOplogs() returns error when the replica set contains an arbiter
- Closed
- is depended on by
-
SERVER-30798 Disallow running applyOps with a renameCollection entry that renames across databases
- Backlog
-
SERVER-30381 Remove handing for rolling back dropSource collections
- Closed
-
SERVER-30382 Create new oplog entry for handling cross database renameCollections
- Closed
- is related to
-
SERVER-28285 renameCollection should only generate one oplog entry
- Closed
-
SERVER-30948 Add protection against releasing lock manager RAII objects out of order
- Closed
-
SERVER-30212 Use two phase drop for renameCollection drops
- Closed
- related to
-
SERVER-30383 Preserve collection UUID in renameCollection across databases
- Closed
-
SERVER-39587 Include the final collection name in each oplog entry for commands using temporary collections
- Closed