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

Add jstests for endOfTransaction change stream event

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Several tests must be implemented for this project:

      1. Basic tests that run transactions and check if the endOfTransaction event is present in the change stream. They will use passthrough suites to cover replica set / sharded cluster variants.
      2. No passthrough tests that should check corner-cases for multi-shard transaction including:
      3. Transaction that affects different collections: both sharded and unsharded.
      4. Transaction that affects different databases with different primary shards. 
      5. In cases where multiple namespaces are affected by a transaction, change streams on each of the namespaces should be asserted to have corresponding endOfTransaction events.
      6. In parallel with transactions, move around chunks of the affected collections.

      Tests should also assert that change streams on namespaces, not affected by a transaction, do NOT have stray endOfTransaction events.

      If a change stream is associated with a particular namespace, end of transaction events should only contain mentions of this namespace.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: