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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0, 4.1.1
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
    • Fully Compatible
    • v4.0
    • Repl 2018-05-21, Repl 2018-06-04, Repl 2018-06-18
    • 3

      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.

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