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

Make `sharding_legacy_api_test` resilient to inaccurate timers

    • Service Arch
    • ALL
    • v4.4, v4.2, v4.0, v3.6
    • Service Arch 2023-05-01
    • 29

      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.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: