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

verify_index_stats_output.js must wait for the failpoint to be hit rather than the index build to begin

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • 9

      The test verify_index_stats_output.js uses waitForIndexBuildToStart expecting it to mean that the failpoint previously set has been hit. However, that is not what waitForIndexBuildToStart does: it simply looks for a currentOp reported operation to be an index build.

      I believe verify_index_stats_output.js has been passing (until now) by good fortune of a race. It needs to wait for the failpoint to be hit, for which we have JS test utilities, before expecting to find results in $indexStats.

            Assignee:
            nikita.lapkov@mongodb.com Nikita Lapkov (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: