Rewrite update_yield1.js to not depend heavily on timing

XMLWordPrintableJSON

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

      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
            Reporter:
            David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: