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

Rewrite update_yield1.js to not depend heavily on timing

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.5, 3.3.3
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • Fully Compatible
    • Query 11 (03/14/16)
    • 0

      The test update_yield1.js is designed to verify that a long-running multi-update yields to a findOne() operation. However, it depends heavily on timing information and has been shown to be flaky when the test runs slowly.

      We can test the same behavior in a much more dependable way as follows:

      • Start a mongod and configure internalQueryExecYieldIterations so that operations will yield predictably.
      • Insert some data and explain a multi-update which would update all of the data.
      • Assert that the number of yields reported in the explain execution stats is greater than or equal to some value.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: