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

Synchronously enable the profiler in prepare_conflict.js before starting a parallel transaction

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc1, 4.1.1
    • Affects Version/s: 4.0.0-rc0
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.0
    • Storage NYC 2018-06-04
    • 18

      The noPassthrough/prepare_confict.js test enables the profiler on a collection, which holds a MODE_X lock on the database, in parallel with beginning an update operation in a transaction. This occasionally results in a LockTimeout error on the update command.

      Enabling the profiler with the profile command  should be moved so that it completes before doUpdateTransactionPrepare starts a parallel shell. This will ensure so that no conflicting locks prevent the update command from completing.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: