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

Make assertion for amount of retries in ocsp_retry_backoffs.js less specific

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.1.0-rc0, 5.1.0-rc3
    • None
    • None
    • Fully Compatible
    • v5.1
    • Security 2021-10-04, Security 2021-10-18
    • 44

    Description

      The assertion: checkLog.checkContainsWithCountJson(conn, FETCH_LOG_ID, {}, 5) is too specific and doesn't take into account the time between the mongod process start until the mongo shell connection is accepted, which may happen slowly (e.g. 8 seconds in the BF). Within this 8 seconds, there have already been 5 fetch retries, so when the script sleeps for an additional 10 seconds, another fetch occurs bringing the number of fetches to 6, thus causing an assertion failure.

      The assertion needs to change to something like checkLog.containsWithAtLeastCount(conn, msg, 5).

      Attachments

        Activity

          People

            erwin.pe@mongodb.com Erwin Pe
            erwin.pe@mongodb.com Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: