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

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0, 5.1.0-rc3
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v5.1
    • Sprint:
      Security 2021-10-04, Security 2021-10-18
    • Linked BF Score:
      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

            Assignee:
            erwin.pe Erwin Pe
            Reporter:
            erwin.pe Erwin Pe
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: