multi_statement_transaction_simple must use w:majority in setup

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: