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

Transaction may unexpectedly expire before commit in txn_being_applied_to_secondary_cannot_be_killed.js

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • ALL
    • Sharding 2019-07-15
    • 28

      txn_being_applied_to_secondary_cannot_be_killed.js tests that the periodic job for aborting transactions running longer than the transactionLifetimeLimitSeconds parameter can't kill a transaction while it's being applied on a secondary. It does so by lowering the lifetime limit to 10 seconds, pausing transaction oplog application on a secondary, committing a cross-shard transaction, then sleeping for 30 seconds to give the periodic job enough time to run.

      The transaction lifetime parameter is lowered on all nodes, so it's possible the transaction is killed (through the periodic job or the transaction coordinator's deadline) before it can be committed, failing the test. The test should be modified to handle this or at least make it less likely.

            Assignee:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: