ExportXMLWordPrintableJSON

    • Fully Compatible
    • QI 2025-02-17
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Add more test cases to verify endOfTransaction change events are delivered in adverse conditions:

      • end_of_transaction_coordinator_failover.js: forces the two-phase-commit coordinator's primary to step down mid-commit and verifies the newly-elected primary recovers the persisted scope assignment, completes the commit, and the stream observes exactly one non-duplicated endOfTransaction.
      • end_of_transaction_ddl_blocking.js: verifies a concurrent collection rename/drop blocks on a multi-shard transaction's locks until its commit completes, and the stream sees the full transactional sequence (inserts + endOfTransaction) ordered before the DDL event and invalidate.
      • end_of_transaction_disjoint_shards.js: runs a transaction across two collections on disjoint shard sets and verifies every scope (both collections, database, cluster) receives exactly one correctly-ordered endOfTransaction following its own events.
      • end_of_transaction_migration_safety.js: exercises concurrent chunk migrations, including a pinned interleaving where a migration blocks on a prepared transaction's locks, and verifies a stream never misses the shard commit entry and sees exactly one endOfTransaction per committed transaction.
      • end_of_transaction_multiple_databases.js: replays a multi-collection/multi-database/multi-shard workload and verifies each collection, database and cluster stream sees only its scope's transactional events closed by one endOfTransaction, while unrelated scopes see none.
      • end_of_transaction_precise_targeting.js: verifies that under precise shard targeting, collection streams targeting a strict subset of a transaction's shards each still receive exactly one correctly-ordered endOfTransaction.

            Assignee:
            Jan Steemann
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: