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

Implicit collection creation is allowed in aborted transactions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.0.3, 4.1.4
    • 4.0.5
    • Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2018-11-05, Repl 2018-11-19
    • 0

    Description

      We do not allow you to implicitly create a collection in a transaction. This check is performed using inMultiDocumentTransaction(). However, if the transaction has been killed since the operation started running, inMultiDocumentTransaction() will return false, and we will allow you to implicitly create a collection. On the 4.0 branch, we should fix this by instead checking inActiveOrKilledMultiDocumentTransaction(). On master, this will be fixed by SERVER-37244, which ensures that the transaction state cannot change while the session is checked out.

      Attachments

        Activity

          People

            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: