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

Must deep-copy objects in ops array in txn_override.js

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • None
    • None
    • Replication
    • ALL
    • Repl 2019-01-28, Repl 2019-02-11, Repl 2019-02-25, Repl 2019-03-11, Repl 2019-03-25, Repl 2019-04-08
    • 18

    Description

      When pushing an object onto the 'ops' array in continueTransaction, we currently do not deep-copy it. This means that if a test modifies one of the objects it uses, if we retry the transaction the retry will use the modified objects. We should do a deep copy.

      Note we have a deepCopyObject method in jstests/concurrency/fsm_libs/fsm.js which might be appropriate for this.

      Attachments

        Issue Links

          Activity

            People

              judah.schvimer@mongodb.com Judah Schvimer
              matthew.russotto@mongodb.com Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: