Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3207

Use sharded cluster to test mongorestore with transactions

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            dave.rolsky@mongodb.com Dave Rolsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: