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

Make `sharding_legacy_api_test` resilient to inaccurate timers

    XMLWordPrintable

    Details

    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2, v4.0, v3.6
    • Linked BF Score:
      34

      Description

      The test heavily relies on timers (e.g., curTimeMicros64()) to test the order of events. This could potentially cause failures if the timer does not advance between two events (e.g., see here and here).

      This ticket should improve the usage of timers in this test to make sure a non-increasing timer would not cause test-failures. A potential solution is to introduce artificial delays between the points of interest, as previously done by SERVER-34857.

      This test is only available on 3.6, 4.0, 4.2, and 4.4.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-servicearch Backlog - Service Architecture
              Reporter:
              amirsaman.memaripour Amirsaman Memaripour
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: