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

Write tests for transactions that write to a collection that is concurrently dropped

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0.0, 4.1.1
    • Replication
    • None
    • Fully Compatible
    • v4.0
    • Repl 2018-05-21, Repl 2018-06-04, Repl 2018-06-18
    • 3

    Description

      We want to test the interaction between transactions and collection drops. We should test the following cases:

      1. A transaction writes to a collection on one session. On a separate session, that a drop is attempted on that collection. The collection drop should block until either the transaction commits or maxTimeMS expires. We should also test this for dropDatabase.
      2. Create collections A and B. Start a transaction T by reading from a collection A. In a separate session, drop collection B. Then try to write to collection B in transaction T. Verify that this write fails, since the collection was dropped.

      Attachments

        Issue Links

          Activity

            People

              tess.avitabile@mongodb.com Tess Avitabile (Inactive)
              william.schultz@mongodb.com William Schultz (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: