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

txn_two_phase_commit_write_concern.js relies on majority committed writes being applied

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc10
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • v8.0
    • Repl 2024-06-24, Repl 2024-07-08
    • 0

      txn_two_phase_commit_write_concern.js commits a transaction via coordinateCommitTransaction, which performs an update to the config.transaction_coordinators doc for the transaction and waits for it to satisfy the given write concern before returning. The test then validates that the write concern was respected by checking the config.transaction_coordinators doc on the expected number of nodes reflects the update.

      As of PM-3489 it is no longer a valid assumption that a majority committed write has been applied on a majority of nodes yet, only that a majority have acknowledged it / made it durable. And so this test sporadically fails when testing majority WC behavior because sometimes the update has not been applied yet on a secondary.

            Assignee:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: