Use sharded cluster to test mongorestore with transactions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 968

      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.

            Assignee:
            Unassigned
            Reporter:
            Dave Rolsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: