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

multi_statement_transaction_simple must use w:majority in setup

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2018-04-09
    • 62

      The multi_statement_transaction_simple test in concurrency_replication does a setup using standard write concern. If the first transferMoney in this test happens to run before the setup becomes majority committed, it will do transfers that are no-ops (because it does updates with queries that find no documents), leading to a wrong count. So at least the last setup write must be done with write concern majority (might make sense to change to a bulk write)

      Additionally the transferMoney code should check to make sure if the update updated exactly one document.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: