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

Implicit collection creation is allowed in aborted transactions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.5
    • Affects Version/s: 4.0.3, 4.1.4
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2018-11-05, Repl 2018-11-19
    • 0

      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.

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

              Created:
              Updated:
              Resolved: