-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
768
Right now we have tests that test mongorestore's handling of transactions in an oplog dump, TestMongorestoreTxns. The oplog dump lives in two hand-made JSON files, one for pre-6.1 Servers and one for 6.1+.
Ideally, we would generate the oplog dump as part of the test, but these tests are executed against a replicaset, and transactions only end up in the oplog with sharded clusters.
Note that it may not be possible to fully generate this data. In particular commitTransaction and abortTransaction ops are only generated as part of Server internals. There is no command that can be run which generates these directly.
Acceptance Criteria
- Replace the hand-coded JSON files with code to generate the same set of oplog operations.
- depends on
-
TOOLS-3206 Add some tests that use sharded clusters
- Accepted
- is related to
-
TOOLS-3185 Fix TestMongorestoreTxns failure on all platforms when run against latest Server
- Closed