Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39678

Comprehensive test for resuming a Change Stream with prepared transactions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.10
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Query 2019-03-11, Query 2019-03-25, Query 2019-04-08

      Description

      1. While a Change Stream is open on a single replica set, the test prepares multiple transactions, executes writes without a transaction, commits at least one prepared transaction, and aborts at least one prepared transaction.
        • The test asserts that all operations appear in commit order and operations from aborted transactions do not appear as changes in the Change Stream.
        • It then resumes the Change Stream from each possible resume token, ensuring that is sees the same stream of events each time.
      2. A sharded test performs the same operations and checks as above, using sharded transactions instead, and ensuring that writes occur on multiple shards.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              james.wahlin James Wahlin
              Reporter:
              justin.seyster Justin Seyster
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: