Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1244

Use majority WC to drop/create collections for transaction tests

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.5.0
    • 1.5.2
    • None
    • None

    Description

      Per Transactions and Locks:

      When creating or dropping a collection immediately before starting a transaction, if the collection is accessed within the transaction, issue the create or drop operation with write concern "majority" to ensure that the transaction can acquire the required locks.

      This is already done in the drop_collection() utility function (added for PHPC-1140), but we should make sure any other drop/create commands in transaction tests also use a majority write concern.

      Attachments

        Issue Links

          Activity

            People

              derick Derick Rethans
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: