Make `sharding_legacy_api_test` resilient to inaccurate timers

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Service Architecture
            Reporter:
            Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: